inherit
64274
0
Apr 30, 2008 10:53:30 GMT -8
Jonathan
1,048
November 2005
jonathan
|
Post by Jonathan on Dec 23, 2005 2:18:03 GMT -8
Is there a code to disable people from right clicking on images on your site?
|
|
inherit
"support Goddess"
59854
0
Oct 16, 2007 9:22:41 GMT -8
Ms PiXie
have a nice day :)
7,823
September 2005
pixiestix
|
Post by Ms PiXie on Dec 23, 2005 2:20:30 GMT -8
Is there a code to disable people from right clicking on images on your site? try this--> <script language=JavaScript> <!--
//Disable right mouse click Script
var message="Sorry, you are Disallowed Right clicking or copying anything from this board!";
/////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } }
function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } }
if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; }
document.oncontextmenu=new Function("alert(message);return false")
// --> </script>
edited to add: here is another useful code from the code data base here as well
|
|
inherit
64274
0
Apr 30, 2008 10:53:30 GMT -8
Jonathan
1,048
November 2005
jonathan
|
Post by Jonathan on Dec 23, 2005 2:23:09 GMT -8
Is there a code to disable people from right clicking on images on your site? try this--> <script language=JavaScript> <!--
//Disable right mouse click Script
var message="Sorry, you are Disallowed Right clicking or copying anything from this board!";
/////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } }
function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } }
if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; }
document.oncontextmenu=new Function("alert(message);return false")
// --> </script>
That code disables you from clicking on anything. I just want it so people can't click on images.
|
|
Guide
New Member
Posts: 0
inherit
181056
0
Jul 6, 2012 10:43:44 GMT -8
Guide
0
July 2012
11823
|
Post by Guide on Dec 23, 2005 2:24:18 GMT -8
|
|
inherit
"support Goddess"
59854
0
Oct 16, 2007 9:22:41 GMT -8
Ms PiXie
have a nice day :)
7,823
September 2005
pixiestix
|
Post by Ms PiXie on Dec 23, 2005 2:25:23 GMT -8
|
|
inherit
64274
0
Apr 30, 2008 10:53:30 GMT -8
Jonathan
1,048
November 2005
jonathan
|
Post by Jonathan on Dec 23, 2005 3:04:18 GMT -8
Thank you.
|
|