1
FAQ, Tips / Re: Remove the right-click disabler
« on: May 12, 2007, 11:18:50 AM »
My fotoalbum.html
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--
START SCRIPT
-->
<script language="javascript" type="text/javascript">
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");
</script>
<!--
END SCRIPT
-->
<link rel="icon" href="image/favicon.ico" type="image/ico">
<title>Christian's Fotoalbum</title>
<meta content="Christian's Fotoalbum" name="description"/>
<meta content="" name="keywords"/>
<meta content="" name="author"/>
<meta content="ChristianKnorr@gmx.de" name="email"/>
<meta content="Christian Knorr" name="copyright"/>
<link type="text/css" rel="stylesheet" href="style.css"/>
</head>
<frameset border="0" frameborder="NO" framespacing="0" cols="*" rows="*">
<frame noresize="" scrolling="auto" name="tocframe" src="http://chrisk.homeftp.net/4images/">
</frameset>
<noframes/>
</html>
has no effect.