按右鍵預警轉址回自訂首頁語法

1.在 alert("您已經按了右鍵,\n疑似想偷看本站原始碼,\n您將要受到懲罰,\n就把您丟回首頁!"); 中自行修改告示語,可加入 \n 斷行

2.在 location.replace("http://ns-girl.myweb.hinet.net/"); 中修改指定前往的頁面


<!--轉址式防止複製_開始-->
<script language=JavaScript>
<!--
if (navigator.appName.indexOf("Internet Explorer") != -1)
document.onmousedown = noSourceExplorer;
function noSourceExplorer()
{
if (event.button == 2 | event.button == 3)
{
alert("您已經按了右鍵,\n疑似想偷看本站原始碼,\n您將要受到懲罰,\n就把您丟回首頁!");
location.replace("http://ns-girl.myweb.hinet.net/");
}
}
-->
</script>
<!--轉址式防止複製_結束-->

arrow
arrow
    全站熱搜

    nicole 發表在 痞客邦 留言(0) 人氣()