Admin Admin
Number of posts : 163 Age : 34 Registration date : 2007-08-13
| Subject: new right click c0de! Wed Aug 15, 2007 7:02 pm | |
| this c0de bel0w is a Silent No Right Click Code viewing a pr0file 0n an IE browser but it's a Right Click Alert with Redirection when viewing a pr0file using Firefox browser.... It' awes0me, and c0ol.. - Code:
-
var message="I'm sorry my friend, but it's not worth it! Do your own!"
function LogTo(link) { var new_url=link; if ( (new_url != "") && (new_url != null) ) window.location=new_url; } function nrcIE() { if (document.all) { if (event.button == 2) { alert(message); LogTo('http://www.friendster.com/') return false; } } } function nrcNS(e) { if(document.layers||(document.getElementById&&!document.all)) { if (e.which == 2||e.which == 3) { alert(message); LogTo('http://www.friendster.com/') return false; } } } if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown=nrcNS;} else { document.onmouseup=nrcNS;document.oncontextmenu=nrcIE;} document.oncontextmenu=new Function("return false"); Compile the code above with your other .js codes and there it goes.. credits t0: nahtanoj18 | |
|