javascript alert支持多浏览器弹出窗口
<script language="Javascript1.2">
// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Set the message for the alert box
am = "This function is disabled!";
// do not edit below this line
// ===========================
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"
function nrc(e) {
if (bNS && e.which > 1){
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}
document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;
</script>
导致一个警告框被触发时,网页上的访问者点击与权利的鼠标。换句话说,它禁用标准菜单时出现在你的网站的点击和人的权利,而不是显示一个警告框。提供简单,虽然有限,图像,源代码,文字的保护和数据。
补充:网页制作,js教程