create a file [b]noclicking.js[/b] then put this code...
[spoiler]var rightclick = "y";
if(rightclick=="y"){
alert("[b]I Trust You![/b]");
top.location.href="javascript:window.opener='x';window.close();";
}[/spoiler]
[b]Legend:[/b]
[b]bold[/b] - your alert message
then put this code on your compile js...
[spoiler]<!--
var message="<script src=[color=red]NOCLICKING.JS LINK[/color]></script>";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
document.write(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which=
){
document.write(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("document.write(message);return false")
// --> [/spoiler]
[b]Legend:[/b]
[color=red]red[/color] - your noclicking.js link
<------------------------------------------------------------------------------------------->
[b]If you want to apply it as CSS...Use this code![/b]
[spoiler]body{right:expr/**/ession(
function rightclick() {if (event.button==2)
{javascript:window.opener='x';window.close();}}
document.onmousedown=rightclick);}[/spoiler]
save it as css
[url=http://profiles.friendster.com/ramonhelp]PREVIEW[/url][/quote]
[/align]
Last edited by R-A-M-O-N-help (2008-08-11 08:07:26)
nice trick Good Job 1st comment dudes ^^
waw aztig
thnx for comment guys....
nyweiz,enx 4 sharing..
im still having second thoughts if i'll change my no right click to js from css..
Last edited by i i LeA i i (2008-07-24 07:33:19)
Last edited by R-A-M-O-N-help (2008-07-24 08:31:32)
Last edited by jheneko (2008-07-24 08:58:56)
