PDA

View Full Version : Disable right click problem



lolfoollor
02-27-2011, 03:25 AM
1) Script Title: http://www.dynamicdrive.com/dynamicindex9/noright.htm

2) Script URL (on DD):
<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>
3) Describe problem:
Can any body tell me at this web site can but when i put behind my <body expr:class='&quot;loading&quot; + data:blog.mobileClass'> cus i cannot find <body> but nothing happened

traq
02-27-2011, 04:12 AM
I'm not clear on what you mean at all. Can you rephrase what the problem is?

(is this related to what you were asking about in your other thread? you should keep it all in the same thread until it's resolved, it's easier for people to help you that way.)

lolfoollor
02-27-2011, 04:34 AM
I'm not clear on what you mean at all. Can you rephrase what the problem is?

(is this related to what you were asking about in your other thread? you should keep it all in the same thread until it's resolved, it's easier for people to help you that way.)

no it not last one is cannot put in side now is put inside cannot work

traq
02-27-2011, 05:09 PM
put inside of what? how is it failing (are there errors? simply nothing happens)?

I'm not sure what you're trying to do with the <body> tag in your original post, but scripts shouldn't be there. Post your html code and we'll see if we can figure it out.