div id for head tag java script
brandofamily
Registered Users Posts: 2,013 Major grins
I have this code in my head tag (got it from a fellow SMer) no lecture on how it can be disabled please, or that it is not really needed...
Can it be wrapped in a div id, so I can turn it off in selected galleries..?
Happy Easter...
<***script language="JavaScript"> <*** 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 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>
Can it be wrapped in a div id, so I can turn it off in selected galleries..?
Happy Easter...
0
Comments
Here a method you can use to do it on a gallery basis, I have used two of your galleries. You could also do these on a category or sub-category basis.
Cheers,
David
SmugMug API Developer
My Photos
Is there a way to code using "if not"? Like if it's "not" this gallery then apply this function?
SmugMug API Developer
My Photos
Thanks David...that's what I was looking for....I figured, from my high school/ college days of programing, that there had to be a "not" method. But I do not know CSS or Java very well....mostly only what you all show me...