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 parentElement和offsetParent之間的區(qū)別
這里主要說的是 offsetParent 屬性,這個屬性在 MSDN 的文檔中也沒有解釋清楚,這就讓人更難理解這個屬性。 這幾天在網上找了些資料看看,再加上自己的一些測試,對此屬性有了那么一點的了解,在這里總結一下。2010-03-03
JS中的==運算: [''''] == false —>true
這篇文章主要介紹了JS中的==運算: [''] == false —>true的相關資料,非常不錯,具有參考借鑒價值,需要的朋友可以參考下2016-07-07
nodejs創(chuàng)建web服務器之hello world程序
本文給大家分享nodejs創(chuàng)建web服務器之hello world程序,node真的很好用,不僅用v8引擎來解析了javascript外,還提供了高度優(yōu)化的應用庫,真的很好,有需要的朋友一起來學習吧2015-08-08

