|
|
|
date: Wed, 26 Oct 2005 06:18:03 -0700,
group: microsoft.public.inetsdk.html_authoring
back
RE: Disabling print in Frontpage.
I can't think of a way to prevent printing, but how about a way to print
nothing? IE supports the CSS @media rule, which allows you to customize the
CSS stylesheet styles when the media is a printer, rather than the screen.
Search the MSDN website for "@media rule" -- The first hit on my list
provides a nice description and example. Combine this technique with the CSS
styles "display: none" or "visibility:hidden".
If you want to be nice, when the user prints the page, you could use the
rule technique to hide images and show some helpful text in their place, such
as "These images are not printable." However, I must warn you, some people
interpret such a message as a challenge. :-)
You should also be aware that some people will right-click on the images and
copy them to the Windows clipboard. You can use the DHTML event
"oncontextmenu" to intercept and disable this command.
Of course, you really can't stop the persistent thief. There are dozens of
ways to grab images. This is the Internet, and it's just a browser. (sigh)
date: Mon, 31 Oct 2005 03:13:02 -0800
author: David Patow am
|
|