Right Click Error

Disable right click function on your blog page, so your blog becomes safe from the ignorant blogger.


we just started


1. Sign in Blogger

2. Go to the Edit Layout / Add Page Element

3. Select the HTML / Java Script

4. Sopy code below and paste in the empty area



<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="Can't Right Click!";

///////////////////////////////////

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>



5. Save Setting


Finished


Change Message var message="Can't Right Click!"; with which you want


LIVE DEMO

Comments :

2 comments to “Right Click Error”
HeavenZ said...
on 

kok di blog gw ga bisa yaa??

SGZ said...
on 

mungkin ada yang kurang pas ngopynya..

Post a Comment

 

Followers

About Me