<body>

Cancong

蚕丛

防止被拷贝
1. 将彻底屏蔽鼠标右键,无右键菜单

<body oncontextmenu="window.event.returnvalue=false">


2.取消选取、防止复制

<body onselectstart="return false">


3.不准粘贴

<body onpaste="return false">


4.防止复制

<body oncopy="return false;" oncut="return false;">


5.防止被人frame

<SCRIPT LANGUAGE=javascript><!--
 if (top.location != self.location)top.location=self.location;
// --></SCRIPT>


6.网页将不能被另存为

<noscript><iframe src=*.html></iframe></noscript>
说明:<noscirpt>的用法很广,其中一条就是可以使JS广告失效。


7.禁止右键:

<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()">



8.网页防复制代码

<SCRIPT LANGUAGE=javascript>
function click() {
alert('需要复制,请与站长联系!') }
function click1() {
if (event.button==2) {alert('需要复制,请与站长联系!') }}
function CtrlKeyDown(){
if (event.ctrlKey) {alert('不当的拷贝将损害您的系统!') }}
document.onkeydown=CtrlKeyDown;
document.onselectstart=click;
document.onmousedown=click1;
</SCRIPT>

2008/03/13

by Cancong Media, 14:58
comments:

Add a comment