鎖右鍵語法

<script type="text/javascript" language="JavaScript">// <![CDATA[
if (navigator.appName.indexOf("Internet Explorer") != -1)

document.onmousedown = noSourceExplorer;

function noSourceExplorer()

{

if (event.button == 2 | event.button == 3)

{

alert("您已經按了右鍵");

location.replace("http://abowman.pixnet.net/blog");

}

}
// ]]></script>


arrow
arrow
    全站熱搜

    ㄟ寶 發表在 痞客邦 留言(5) 人氣()