Log In · Register

 
why isnt the no right/no highlight code not workin, eeeeeeeek!
hellohello1
post Jan 2 2005, 09:20 PM
Post #1


Member
**

Group: Member
Posts: 28
Joined: Dec 2004
Member No: 74,760



why isnt the no right and no hightlight not working for my site? im using pretty in pink ft. adriana lima
 
 
Start new topic
Replies
hellohello1
post Jan 3 2005, 03:10 PM
Post #2


Member
**

Group: Member
Posts: 28
Joined: Dec 2004
Member No: 74,760



<script language="JavaScript1.2" type="text/javascript">
if (window.Event)
document.captureEvents(Event.MOUSEUP);

function nocontextmenu() {
event.cancelBubble = true, event.returnValue = false;

return false;
}

function norightclick(e) {
if (window.Event) {
if (e.which == 2 || e.which == 3) return false;
}
else if (event.button == 2 || event.button == 3) {
event.cancelBubble = true, event.returnValue = false;
return false;
}
}

if (document.layers)
document.captureEvents(Event.MOUSEDOWN);

document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;
document.onmouseup = norightclick;
//--></script>


im using that code..i've always been using it..and now with the new layout it doesnt work.. :( lol
 

Posts in this topic


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