Shaun
July 3rd, 2010, 18:44
Use this to stop people leeching stuff....
Copy this into your <head> tag
<td><script language=JavaScript>
<!--
//V2.5 No Right Click
//Created by Shauny Boi
var message="You cannot click here.";
///////////////////////////////////
function clickIE() {
if (document.all) {
(message);return false;
}
}
function clickNS(e) {
if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {
(message);return false;
}
}
}
if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);document.o nmousedown=clickNS;
}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;
}
document.oncontextmenu=new Function("return false")
// -->
</script></td>
Copy this into your <head> tag
<td><script language=JavaScript>
<!--
//V2.5 No Right Click
//Created by Shauny Boi
var message="You cannot click here.";
///////////////////////////////////
function clickIE() {
if (document.all) {
(message);return false;
}
}
function clickNS(e) {
if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {
(message);return false;
}
}
}
if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);document.o nmousedown=clickNS;
}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;
}
document.oncontextmenu=new Function("return false")
// -->
</script></td>