|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Customizing Automated Web Photo Gallery Pages
In Photoshop CS's Automate / Web Photo Gallery, I want to add the JavaScript code to the individual photo pages that prevents a viewer from right-clicking and downloading an image. Doing it manually is not practical, as I generate hundreds of images at a time. Does this function use a template that I can modify? If so, where is it?
Thanks for any help. |
|
#2
|
|||
|
|||
|
Found location and here's how to do it
Maybe this will help someone else who would like to discourage people from downloading your work:
The template for the "Simple" format is in C:\Program Files\Adobe\Adobe Photoshop CS\Presets\Web Photo Gallery\Simple (Other templates are in equally suitably-named sub-folders.) The page for the individual photos is SubPage.htm. Open this file in an html editor or Notepad and insert the following code just before the </head> tag: <script language="Javascript1.2"> // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // Set the message for the alert box am = "Photos, articles, and other materials on this Web site are protected by copyright law. Please contact the photographer or author with questions regarding image or article use."; // do not edit below this line // =========================== bV = parseInt(navigator.appVersion) bNS = navigator.appName=="Netscape" bIE = navigator.appName=="Microsoft Internet Explorer" function nrc(e) { if (bNS && e.which > 1){ alert(am) return false } else if (bIE && (event.button >1)) { alert(am) return false; } } document.onmousedown = nrc; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (bNS && bV<5) window.onmousedown = nrc; </script> <script type='text/javascript' src='/includes/js/old_sidebar.js'></script> <META HTTP-EQUIV="imagetoolbar" CONTENT="no"> |
|
#3
|
||||
|
||||
|
..and what is this...?
Quote:
BTW arlin - that will only work if the user has javascript enabled. try pasting this inside the < body > tag instead... Code:
oncontextmenu="return false" ondragstart="return false" onselectstart="return false" either way all the user has to do is view the source and they can get all your images anyway. If you dont want anyone to beable to steal it, dont put it online (or put watermarks on all your images)
__________________
"I hate quotations." -ralph waldo emerson- |
![]() |
| Viewing: Dev Shed Forums > Web Design > Photoshop Help > Customizing Automated Web Photo Gallery Pages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|