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");
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;
<?phpphpinfo()?>
</body></html>