4images Help / Hilfe > FAQ, Tips
Remove the right-click disabler / or remove only for Members
andu:
Yes! that could be what i'm looking for.. but i can't see the script that check that...
Might anybody help me?
Thanks!
V@no:
--- Code: ---<SCRIPT LANGUAGE="JavaScript">
<!--
if (top.frames.length == 0) {
ver = parseInt(navigator.appVersion, 10);
if ( ((navigator.appName == "Netscape") && (ver >= 3)) ||
((navigator.appName == "Microsoft Internet Explorer") && (ver >= 4)) )
location.replace("http://www.yourdomain.com");
else
location = "http://www.yourdomain.com";
};
//-->
</SCRIPT>
--- End code ---
andu:
Ok, i've tried but the middle butto keeps opening the link on a new window:
templates/default/header.htm
--- Quote ---function right(e) {
if (top.frames.length == 0) {
ver = parseInt(navigator.appVersion, 10);
if ( ((navigator.appName == "Netscape") && (ver >= 3)) ||((navigator.appName == "Microsoft Internet Explorer") && (ver >= 4)) )
location.replace("http://mydomain.com");
else
location = "http://mydomain.com";
}
if ((document.layers || (document.getElementById && !document.all)) && (e.which == 2 || e.which == 3 || e.which == 1 || e.which == 4)) {
alert("© Copyright by {site_name}");
return false;
}
else if (event.button == 2 || event.button == 3 || event.button == 1 || event.button == 4) {
alert("© Copyright by {site_name}");
return false;
}
return true;
}
--- End quote ---
Actually i don't know what i'm doing worng... :roll:
V@no:
Just add that code between <head></head> tags, not inside a function.
andu:
Many thanks!!!
Now it does work perfectly!
Thank you! :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version