Photoshop Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignPhotoshop Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 30th, 2005, 11:13 AM
Arlin Arlin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 Arlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 2 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old January 30th, 2005, 11:53 AM
Arlin Arlin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 5 Arlin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 2 sec
Reputation Power: 0
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">

Reply With Quote
  #3  
Old February 2nd, 2005, 02:29 PM
cliffhanger9's Avatar
cliffhanger9 cliffhanger9 is offline
fortin bra?
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: city of sin, state of the art
Posts: 416 cliffhanger9 Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 18 h 22 m 19 sec
Reputation Power: 0
Send a message via ICQ to cliffhanger9 Send a message via AIM to cliffhanger9 Send a message via MSN to cliffhanger9 Send a message via Yahoo to cliffhanger9
..and what is this...?

Quote:
Originally Posted by Arlin
<script type='text/javascript' src='/includes/js/old_sidebar.js'></script>



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-

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignPhotoshop Help > Customizing Automated Web Photo Gallery Pages


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT