For
disabling right click function:
You’ll need to add new html/javascript
element to your layout.
Now
go to your blogger account.
Navigate
to Layout >> Add a GadGet >> and select html/javascript
Then
copy the next code and past in in html/javascript text box area
<script
language="JavaScript">
<!--
//Disable
right mouse click Script
//By
Cyber World (contact@esoftload.info) w/ mods by Software Store
//For
full source code, visit http://www.esoftload.info
var
message="Function Disabled!";
///////////////////////////////////
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>
then save the html/javascript. and
view you blog.
when
you try to do right click. a message will tell you that “Function disabled”
and
if you want to change this words” Function Disabled”
find
the next line in the code
var message="Function
Disabled!";
and change Function Disabled! to what
ever you want.
For
disabling copy paste function:
Log in to Blogger, go to Layout ->
Edit HTML
And
mark the tick-box “Expand Widget Templates”
Now find this in the template:
<head>
And immediately BELOW/AFTER it, paste
this code:
<!--Disable Copy And Paste-->
<script
language='JavaScript1.2'>
function
disableselect(e){
return
false
}
function
reEnable(){
return
true
}
document.onselectstart=new
Function ("return false")
if
(window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
Click on Save Template and you are
done.
No comments:
Post a Comment