Tuesday, September 19, 2006

Java script

Just discovered that there's this short Java script in my blog template along from the inital setup. The primary function set restriction on right click function. YUCKS, now that the reason why I cant open a additional tab within my firefox. For those who want this function add this codes into your template, do at the arrow brackets '<>' to 'script language=JavaScript' in the first line and '/script' in the last line

"
script language=JavaScript

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
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.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
//
/script
"

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...