Remove the Right-Click Disabler Different Versions |
Description: |
You Can Read This Tutorial also at - http://iezombie.net/4images-remove-the-right-click-disabler-different-versions/
Go to Edit Template > Load Your Theme > Then Load Header.html
Open the header.html template and remove these lines
Don’t Forget to Save Changes at the Bottom
4images V1.7 – 1.7.2
function right(e) {
if (navigator.appName == ‘Netscape’ && (e.which == 2 || e.which == 3)) {
alert(“© Copyright by {site_name}”);
return false;
}
else if (navigator.appName == ‘Microsoft Internet Explorer’ && (event.button==2 || event.button == 3)) {
alert(“© Copyright by {site_name}”);
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
4images V1.7.3 – 1.7.6
function right(e) {
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
alert(“© Copyright by {site_name}”);
return false;
}
else if (event.button == 2 || event.button == 3) {
alert(“© Copyright by {site_name}”);
return false;
}
return true;
}if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = right;
}
else if (document.all && !document.getElementById){
document.onmousedown = right;
}document.oncontextmenu = new Function(“alert(‘© Copyright by {site_name}’);return false”);
Right-click only for Guest, not for Members
function right(e) {
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
alert(“© Copyright by {site_name}”);
return false;
}
else if (event.button == 2 || event.button == 3) {
alert(“© Copyright by {site_name}”);
return false;
}
return true;
}if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = right;
}
else if (document.all && !document.getElementById){
document.onmousedown = right;
}document.oncontextmenu = new Function(“alert(‘© Copyright by {site_name}’);return false”);
Replace
function right(e) {
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3)) {
alert(“© Copyright by {site_name}”);
return false;
}
else if (event.button == 2 || event.button == 3) {
alert(“© Copyright by {site_name}”);
return false;
}
return true;
}if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = right;
}
else if (document.all && !document.getElementById){
document.onmousedown = right;
}document.oncontextmenu = new Function(“alert(‘© Copyright by {site_name}’);return false”);
|
Keywords: |
|
Date: |
10.05.2012 22:41 |
Hits: |
716 |
Downloads: |
38 |
Rating: |
0.00 (0 Vote(s)) |
File size: |
29.4 KB |
Added by: |
Heidi |
|