Click to See Complete Forum and Search --> : onPressPrintScreen
JimJamJammin
12-19-2003, 04:20 PM
Is there any way to trigger a javascript code when the users presses the 'Print Screen' button? This would allow me to 'blank' out the images on the page so as to eliminate another method of picture theft. :)
Thanks for your help.
fredmv
12-19-2003, 05:00 PM
There is no such event handler, however you can still track key press events and see what key the user pressed. Although, you can't cancel events such as print screen. If you don't want your images stolen, simply don't upload them or watermark them. Another option would be to only provide the thumbnail and make users pay for the full version.
JimJamJammin
12-20-2003, 03:33 AM
Well such event handler was purely hypothetical, but I still would very much like to track the use of the Print Screen key.
I tried using the 'onkeypress' handler, which blanks out the image for a few seconds. This responds to almost all buttons, including the direction arrows, but not the Print Screen button.
The images are already thumbnailed - I might aswell explain briefly why I would like such protection.
The site is a virtual 'trading card' site being developed for www.mugglenet.com, where users can acquire cards depicting various characters, objects and locations. There's a collection page which shows the thumbnails of cards the user has. Upon clicking these, it loads up a bigger 'card' window which has the image - the image that needs to be protected.
The pictures are being done by professional artists.
I've tried numerous methods of preventing image theft such as:
* Putting the card displaying page in a toolbarless window. The page cannot be accessed simply by inputting the link into the browser, as it checks the page referrer.
* Disabling right click.
* Putting the image as a php file (getimage.php?id=XX) which firstly protects the real location of the images and prevents viewing of the images from anywhere other than my site.
I could disable image caching, but that would be unwise for bandwidth reasons even with a dedicated server as the site is expected to get over a hundred thousand hits a day.
That just leaves the print screen button problem. :rolleyes: