<script language="javascript"> <!-- function document.onkeydown(){ event.keyCode = 0; event.returnvalue = false; } --> </script> |
<script language="javascript"> <!-- function document.oncontextmenu() { return false; } --> </script> function nocontextmenu() { if(document.all) { event.cancelBubble=true; event.returnvalue=false; return false; } } |
<body onmousedown="rclick()" oncontextmenu= "nocontextmenu()"> <script language="javascript"> <!-- function rclick() { if(document.all) { if (event.button == 2){ event.returnvalue=false; } } } --> </script> |
<script language="javascript"> <!-- //屏蔽鼠标右键、Ctrl+N、Shift+F10、F5刷新、退格键 function window.onhelp(){return false} //屏蔽F1帮助 function KeyDown(){ if ((window.event.altKey)&& ((window.event.keyCode==37)|| //屏蔽 Alt+ 方向键 ← (window.event.keyCode==39))){ //屏蔽 Alt+ 方向键 → alert("不准你使用ALT+方向键前进或后退网页!"); event.returnvalue=false; } |
if ((event.keyCode == 8) && (event.srcElement.type != "text" && event.srcElement.type != "textarea" && event.srcElement.type != "password") || //屏蔽退格删除键 (event.keyCode ==116)|| //屏蔽 F5 刷新键 (event.ctrlKey && event.keyCode==82)){ //Ctrl + R event.keyCode=0; event.returnvalue=false; } if ((event.ctrlKey)&&(event.keyCode==78)) //屏蔽 Ctrl+n event.returnvalue=false; if ((event.shiftKey)&&(event.keyCode==121)) //屏蔽 shift+F10 event.returnvalue=false; if (window.event.srcElement.tagName == "A" && window.event.shiftKey) window.event.returnvalue = false; //屏蔽 shift 加鼠标左键新开一网页 if ((window.event.altKey)&&(window.event.keyCode==115)){ //屏蔽Alt+F4 window.showModelessDialog("about:blank","","dialogWidth:1px;dialogheight:1px"); return false;} } |
window.open("你的.htm", "","toolbar=no,location=no,directories= no,menubar=no,scrollbars=no,resizable=yes,status=no,top=0,left=0") |
window.open("你的.asp", "", "fullscreen=yes") */ //--> </script> |
<script language=javascript> function window.onbeforeunload() { if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey) { window.event.returnvalue = ""; } } </script> |
<script language="javascript"> <!-- window.open(www.32pic.com,"32pic","fullscreen=3,height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no"); --> </script> |
<script language="javascript"> <!-- function document.onkeydown() { if ( event.keyCode==116) { event.keyCode = 0; event.cancelBubble = true; return false; } } --> </script> |
<a href="javascript:location.replace(url)"> |
style="overflow-y:hidden" |
onload="setInterval('clipboardData.setData(\'Text\',\'\')',100)" |
<style> @media print { * { display: none } } </style> |
<META HTTP-EQUIV="imagetoolbar" CONTENT="no"> |
<img galleryimg="no"> |
<noscrript></noscript> |
<script language="javascript"> <!-- function CheckForm() { if (document.form.name.value.length == 0) { alert("请输入您姓名!"); document.form.name.focus(); return false; } return true; } --> </script> |
<script language="javascript"> <!-- function CheckForm() if (document.form.PWD.value != document.form.PWD_Again.value) { alert("您两次输入的密码不一样!请重新输入."); document.ADDUser.PWD.focus(); return false; } return true; } --> </script> |
<script language="javascript"> <!-- function isNumber(String) { var Letters = "1234567890-"; //可以自己增加可输入值 var i; var c; if(String.charAt( 0 )=='-') return false; if( String.charAt( String.length - 1 ) == '-' ) return false; for( i = 0; i < String.length; i ++ ) { c = String.charAt( i ); if (Letters.indexOf( c ) < 0) return false; } return true; } function CheckForm() { if(! isNumber(document.form.TEL.value)) { alert("您的电话号码不合法!"); document.form.TEL.focus(); return false; } return true; } --> </script> |
<script language="javascript"> <!-- function CheckForm() { if (document.form.count.value > 100 || document.form.count.value < 1) { alert("输入数值不能小于零大于100!"); document.form.count.focus(); return false; } if (document.form.MESSAGE.value.length<10) { alert("输入文字小于10!"); document.form.MESSAGE.focus(); return false; } return true; } //--> </script> |
<SCRIPT LANGUAGE="javascript"> <!-- function isEnglish(name) //英文值检测 { if(name.length == 0) return false; for(i = 0; i < name.length; i++) { if(name.charCodeAt(i) > 128) return false; } return true; } function isChinese(name) //中文值检测 { if(name.length == 0) return false; for(i = 0; i < name.length; i++) { if(name.charCodeAt(i) > 128) return true; } return false; } function isMail(name) // E-mail值检测 { if(! isEnglish(name)) return false; i = name.indexOf("@"); j = name.lastIndexOf("@"); if(i == -1) return false; if(i != j) return false; if(i == name.length) return false; return true; } function isNumber(name) //数值检测 { if(name.length == 0) return false; for(i = 0; i < name.length; i++) { if(name.charAt(i) < "0" || name.charAt(i) > "9") return false; } return true; } function CheckForm() { if(! isMail(form.Email.value)) { alert("您的电子邮件不合法!"); form.Email.focus(); return false; } if(! isEnglish(form.name.value)) { alert("英文名不合法!"); form.name.focus(); return false; } if(! isChinese(form.cnname.value)) { alert("中文名不合法!"); form.cnname.focus(); return false; } if(! isNumber(form.PublicZipCode.value)) { alert("邮政编码不合法!"); form.PublicZipCode.focus(); return false; } return true; } //--> </SCRIPT> |