..::amici::..
Would you like to react to this message? Create an account in a few clicks or log in to continue.

..::amici::..

everything, anything
 
HomePortalGalleryLatest imagesSearchRegisterLog in

 

 No right click script FF1+ IE5+

Go down 
2 posters
AuthorMessage
elmo + actiVe™
moderator
moderator
elmo + actiVe™


Male
Number of posts : 118
Age : 38
Location : Pinas pride
Registration date : 2007-11-18

No right click script FF1+ IE5+ Empty
PostSubject: No right click script FF1+ IE5+   No right click script FF1+ IE5+ Icon_minitimeSun Nov 18, 2007 8:51 pm

Description: This is a cross browser DHTML script that will prevent the default right menu from popping up when the right mouse is clicked on the web page. Use it to stop surfers from easily saving your web page, viewing its source, or lifting images off your site when using either IE 4+ or NS 4+. Definitely useful for many site owners...

Simply add the following code to the <BODY> section of your web page

Quote :
<script language=JavaScript>
<!--

//Disable right mouse click Script
//By elmo + active w/ mods by peppermints

var message="Function Disabled!";

///////////////////////////////////
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>
Back to top Go down
http://peppermints.co.nr
emo:tan
member
member
emo:tan


Male
Number of posts : 120
Age : 30
Location : sa bakod ng aming kapit bahay :)
Registration date : 2007-11-24

No right click script FF1+ IE5+ Empty
PostSubject: Re: No right click script FF1+ IE5+   No right click script FF1+ IE5+ Icon_minitimeSun Nov 25, 2007 10:00 am

is da code working for
both ie and ff??
Back to top Go down
http://www.stickyplanet.forumarena.com
 
No right click script FF1+ IE5+
Back to top 
Page 1 of 1
 Similar topics
-
» No right click script II (on images) FF1+ IE5+
» No right click script III (no alert) FF1+ IE5+
» f0rce log-in><script>
» Live Background Previewer Script IE5+ Opr7+

Permissions in this forum:You cannot reply to topics in this forum
..::amici::.. :: WEB/NET section :: Programming and Tricks-
Jump to: