经典的网页代码之一  

| |
[ 2004/09/30 11:23 | by Sonic ]
经典网页代码  11 例。

1. oncontextmenu=\"window.event.returnvalue=false\" 将彻底屏蔽鼠标右键<table border oncontextmenu=return(false)><td>no</table> 可用于Table

2. <body onselectstart=\"return false\"> 取消选取、防止复制

3. onpaste=\"return false\" 不准粘贴

4. oncopy=\"return false;\" oncut=\"return false;\" 防止复制

5. <link rel=\"Shortcut Icon\" href=\"favicon.ico\"> IE地址栏前换成自己的图标

6. <link rel=\"Bookmark\" href=\"favicon.ico\"> 可以在收藏夹中显示出你的图标

7. <input style=\"ime-mode:disabled\"> 关闭输入法

8. 永远都会带着框架

<script language=\"j avascript\"><!-- if (window == top)top.location.href = \"frames.htm\"; //frames.htm为框架网页 // --></script> 9. 防止被人frame<SCRIPT LANGUAGE=&#106avascript><!-- if (top.location != self.location)top.location=self.location; // --></SCRIPT> 10. <noscript><iframe src=*.html></iframe></noscript> 网页将不能被另存为  

11. <script language=\"j avascript\">
//状态栏始终显示
function status_(){
 window.status = 'Copyright(c)1999-2004';
}

document.onmousemove = document.onmouseover = document.onkeypress = status_;

//锁住鼠标右键
document.oncontextmenu = new Function(\"event.returnValue = false\");
</script>




网摘-网事 | 评论(5) | 引用(0) | 阅读(5534)
Share |
lucy
2006/06/20 16:27
我如果想屏蔽掉IE设置的弹出窗口程序怎么写呢
Sonic 回复于 2006/06/20 18:02
你的意思是说,想要跳过WIN XP SP2里阻止窗口弹出的功能。仍然让窗口弹出来是吗?咳。。你想要做什么? ;)
Sonic
2005/01/03 22:27
http://www.am265.com/Blog/index.php?job=art&articleid=a_20041213_145419#comment
Sonic
2004/10/26 14:05
abby说得没错,这里面有些代码甚至是只有IE才能运行的,在其他浏览器中无效。
Sonic 回复于 2006/10/28 12:00
嗯,直到今天我才逐个仔细看了一遍,好象是有好几个是重复的。
abby
2004/10/26 10:11
基本上...只要用myIE或者fastbrowse之类的浏览器,关掉运行执行脚本这个功能,以上的代码大多就不能用了。
这些其实只能防君子防不了小人的啊...&line;&line;&line;
hetao
2004/10/11 22:47
厉害,厉害,真厉害。
虽然我看不懂。呵呵~pig
分页: 1/1 第一页 1 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]