fat_dog
08-09-2002, 11:23 PM
Hi guys !
I'm currently using this 'diable right mouse' script on my page, but I'm reluctant to use it on all my pages because I know from experiance it can become irrotating.
<script language="JavaScript">
<!--
//Disable right mouse click Script
var message="All content is Copyright of Zero One Airsoft.";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(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=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
// -->
</script>
What I'm after is a script that I can add to images only, so you only get the pop-up message if you try to right click on the pictures themselves. Is there such a script?
Thanks :thumbsup:
I'm currently using this 'diable right mouse' script on my page, but I'm reluctant to use it on all my pages because I know from experiance it can become irrotating.
<script language="JavaScript">
<!--
//Disable right mouse click Script
var message="All content is Copyright of Zero One Airsoft.";
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(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=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
// -->
</script>
What I'm after is a script that I can add to images only, so you only get the pop-up message if you try to right click on the pictures themselves. Is there such a script?
Thanks :thumbsup: