js 屏蔽鼠標右鍵腳本附破解方法
更新時間:2009年12月03日 22:31:33 作者:
用來屏蔽鼠標右鍵的代碼,破解方法也比較簡單。比較根本。禁掉js什么也運行不了。
把如下的JS代碼加入頁面就可以了
[html]
<script type="text/javascript">
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
[/code]
破解方法:建議再安裝一個瀏覽器,然后禁掉js,用這個瀏覽器專門訪問各種用js控制的代碼。
[html]
<script type="text/javascript">
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
[/code]
破解方法:建議再安裝一個瀏覽器,然后禁掉js,用這個瀏覽器專門訪問各種用js控制的代碼。
相關文章
js中一個函數(shù)獲取另一個函數(shù)返回值問題探討
在本文將為大家詳細探討下js中一個函數(shù)獲取另一個函數(shù)返回值問題,比較模糊的朋友可以學習下哦2013-11-11
BootStrap.css 在手機端滑動時右側出現(xiàn)空白的原因及解決辦法
這篇文章主要介紹了BootStrap.css 在手機端滑動時右側出現(xiàn)空白的原因及解決辦法的相關資料,非常不錯具有參考借鑒價值,需要的朋友可以參考下2016-06-06

