亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

網(wǎng)頁(yè)源代碼保護(hù)(禁止右鍵、復(fù)制、另存為、查看源文件)

 更新時(shí)間:2012年05月23日 22:28:25   作者:  
網(wǎng)頁(yè)源代碼保護(hù)(禁止右鍵、復(fù)制、另存為、查看源文件),只能起一些簡(jiǎn)單的防護(hù)
1、禁止右鍵菜單
復(fù)制代碼 代碼如下:

<script type="text/javascrpt" language="javascript">
//方法一
function noMenuOne()
{
alert('禁止右鍵菜單!');
return false;
}
document.oncontextmenu = noMenuOne;
//方法二
function noMenuTwo()
{
if(event.button == 2)
{
alert('禁止右鍵菜單!');
return false;
}
}
document.onmousedown = noMenuTwo;
</script>

2、禁止復(fù)制(Ctrl+C)
復(fù)制代碼 代碼如下:

<script type="text/javascript" language="javascript">
function noCopy()
{
alert("禁止使用Ctrl+C進(jìn)行復(fù)制操作!");
event.returnValue = false;
}
</script>
//<body oncopy = "noCopy()">

3、禁止另存為
在<body></body>之間加入代碼
<noscript><iframe src='*.htm'></iframe></noscript>

4、禁止緩存
禁止緩存 在頁(yè)面中使用HTML標(biāo)記,如下面:
復(fù)制代碼 代碼如下:

<HEAD>
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
</HEAD>

相關(guān)文章

最新評(píng)論