Log In · Register

 
uhhh how come this myspace disabled right click..., is it non java script? idk help?
somekidpaul
post Sep 27 2005, 07:48 PM
Post #1


Senior Member
****

Group: Member
Posts: 166
Joined: Aug 2005
Member No: 191,559



this guy disabled right click

myspace doesnt use java script...... how is this possible?...
 
 
Start new topic
Replies
YourSuperior
post Sep 27 2005, 09:03 PM
Post #2


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



Try it now.

CODE
<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="Hey what gives?!";

///////////////////////////////////
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>
 

Posts in this topic


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