Log In · Register

 
 
Closed TopicStart new topic
Double "right click pop ups"
BaBii_Pinai
post Sep 11 2004, 06:38 PM
Post #1


Member
**

Group: Member
Posts: 26
Joined: Aug 2004
Member No: 38,836



i saw the single right click pop up things, but does anyone kno a code to wen u right click and a message pops up, but then when the rite click AGAIN, it shows up as a different message?? ty
 
myloveismusic
post Sep 11 2004, 10:25 PM
Post #2


Newbie
*

Group: Member
Posts: 1
Joined: Sep 2004
Member No: 48,206



[SIZE=7]hope this works for you biggrin.gif

<script language=JavaScript>
<!--

//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

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>
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: