如何在网页中禁止右键查看

 时间:2024-10-26 00:58:58

1、禁止腱懒幺冁鼠标左右键<SCRIPT language=javascript><!--if (window.Event)document.capture呶蓟鹭毵Events(Event.MOUSEUP);function nocontextmenu(){event.cancelBubble = trueevent.returnValue = false;return false;}function norightclick(e){if (window.Event){if (e.which == 2 || e.which == 3)return false;}elseif (event.button == 2 || event.button == 3){event.cancelBubble = true18 event.returnValue = false;19 return false;}}document.oncontextmenu = nocontextmenu; // for IE5+document.onmousedown = norightclick; // for all others//--></SCRIPT>

如何在网页中禁止右键查看

2、禁止鼠标左右键代码/禁止网页选中/禁止另存为/防复制代码<body oncontextmenu="return false" onselectstart="return false"><noscript><iframe src="/*.html>";</iframe></noscript><script>function stop(){return false;}document.oncontextmenu=stop;</script>

如何在网页中禁止右键查看

3、禁止选中代码<SCRIPT language=JavaScript>document.oncontextmenu=new Function("event.returnValue=false;");document.onselectstart=new Function("event.returnValue=false;");</SCRIPT>

如何在网页中禁止右键查看

4、禁止另存为<noscript><iframe src="/*.htm"></iframe></noscript>

如何在网页中禁止右键查看

5、防拷贝/复制代码<body leftmargin=0 topmargin=0 >

如何在网页中禁止右键查看

6、禁止选择文本<script type="text/javascript">var o罪焐芡拂mitformtags=["input", "textarea", "select"]omitformtagsomitformtags=omitformtags.join("|")function disableselect(e){if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)return false}function reEnable(){return true}if (typeof document.onselectstart!="undefined")document.onselectstart=new Function ("return false")else{document.onmousedown=disableselectdocument.onmouseup=reEnable}</script>

如何在网页中禁止右键查看

7、禁止网页另存为<noscript><iframe src="/*.html>";</iframe></noscript>

如何在网页中禁止右键查看

8、禁止选择文本<script type="text/javascript">var omitformtags=["input", "textarea", "select"]omitformtagsomitformtags=omitformtags.join("|")function disableselect(e){if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)return false}function reEnable(){return true}if (typeof document.onselectstart!="undefined")document.onselectstart=new Function ("return false")else{document.onmousedown=disableselectdocument.onmouseup=reEnable}</script>

如何在网页中禁止右键查看

9、禁用右键<script>function stop(){return false;}document.oncontextmenu=stop;</script>

如何在网页中禁止右键查看

10、真正的鼠标右键屏蔽<scr坡纠课柩ipt language="JavaScript"><稆糨孝汶;!--if (window.Event)document.captureEvents(Event.MOUSEUP);function nocontextmenu(){event.cancelBubble = trueevent.returnValue = false;return false;}function norightclick(e){if (window.Event){if (e.which == 2 || e.which == 3)return false;}elseif (event.button == 2 || event.button == 3){event.cancelBubble = trueevent.returnValue = false;return false;}}document.oncontextmenu = nocontextmenu; // for IE5+document.onmousedown = norightclick; // for all others//--></script>

如何在网页中禁止右键查看
  • 阿里云盘APP怎么查看用户协议
  • 教你如何提取mkv视频的外挂字幕
  • potplayer怎么添加扩展名关联?
  • js怎么设置四舍五入保留两位小数点
  • 批处理入门教程-if(一)
  • 热门搜索
    感恩老师的手抄报内容 与法同行手抄报内容 校园文化手抄报 绿色植物手抄报 安全法制教育手抄报 我爱读书的手抄报 感恩父母手抄报花边 小学生诚信手抄报 小学生读书手抄报内容 创卫手抄报设计图