如何禁止网页右键和防止被保存?

来源:百度知道 编辑:UC知道 时间:2024/05/01 18:31:38
请在如下网址帮助回答有关问题:

http://www.shoje.com/wenti/des.asp?tx=如何禁止网页右键和防止被保存?

我要方法或代码,回答的好的,追加高分,谢谢,急用!~
谢谢,请帮我发在网址里,我一个IP会封的,我就是为了赚分啊!~~

<html>
<head>
<tittle>hello</tittle>
</head>
<body>
haha
<script>
function document.onmousedown()
{
if(window.event.button==2)
{
alert('what?');
}
}
</script>
<script language="javascript">
function show(v){
if(v==1){
text1.style.display="block";
text2.style.display="none";
}else if(v==2){
text2.style.display="block";
text1.style.display="none";
}
</script>
<div style="display:none" id=text1>
<input type="text" name="wenjian" >
</div>
<div style="display:none" id=text2>
<input type="text" name="wenjian" >
</div>

</body>
</html>

注意:风险提示