Help me w/ this java please...

brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
I got this code here to augment my right click protection...

[php]<script language="JavaScript">
<!--
if (!isClass("gallery_1370050"))
document.oncontextmenu = rightProtect;
function rightProtect(e)
{ if (window.event)
{ var srcEl = event.srcElement ? event.srcElement : event.target; }
else
{ var srcEl = e.srcElement ? e.srcElement : e.target; }
if (srcEl.tagName.toLowerCase() == 'img') {
window.alert(rightClickWarning);
return false; }
else
{ return true; } }

var rightClickWarning = "All images on this site are the sole property of Anthony Brandolino- Brandolino Imaging, unless otherwise noted and subject to protection under copyright and other intellectual proprty law. All unauthorised use is prohibited. Refer to the 'All Rights Reserved' link below.";
//-->
</script> [/php]
I was given the 1st line to allow that gallery to be right clickable for my family. How do I add another gallery to that 1st line so I can have multiple exclusions to the code....
Heres' the gallery number I want to add "1629121"

Comments

  • ScalaScala Registered Users Posts: 95 Big grins
    edited July 6, 2006
    Try this:

    if (!isClass("gallery_1370050") && !isClass("gallery_1629121"))
    My smugmug site: www.majakorpi.net
  • brandofamilybrandofamily Registered Users Posts: 2,013 Major grins
    edited July 6, 2006
    Scala wrote:
    Try this:

    if (!isClass("gallery_1370050") && !isClass("gallery_1629121"))
    Seems to work... thanks...
Sign In or Register to comment.