1. <body 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. 永远都会带着框架 <s cript language="javas cript"><!-- if (window == top)top.location.href = "frames.htm"; //file://frames.htm为框架网页 // --></s cript> 9. 防止被人frame <S CRIPT LANGUAGE=javas cript><!-- if (top.location != self.location)top.location=self.location; // --></S CRIPT> 10. <nos cript><iframe src=*.html></iframe></nos cript> //网页将不能被另存为 11. <input type=button value=查看网页源代码 onclick="window.location = 'view-source:'+ 'http://www.csdn.net/';"> 12. 怎样通过asp的手段来检查来访者是否用了代理 <% if Request.ServerVariables("HTTP_X_FORWARDED_FOR" <>"" then end if 19.COOKIE脚本记录,有很大的用处哦。
function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (documents.cookie.length > 0) { offset = documents.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = documents.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = documents.cookie.length; returnvalue=unescape(documents.cookie.substring(offset, end)) } } return returnvalue; } function loadpopup(){ if (get_cookie('popped')==''){ openpopup() documents.cookie="popped=yes" } } 20.内框架<IFRAME>使用 Iframe标记的使用格式是: <iframe src="URL" width="x" height="x" scrolling="[OPTION]" frameborder="x" 例子:<iframe name="mm" src="http://www.263.net"; width="100%" height="100%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe> 21.自动跳转 只需在链接上加上这一代码就行的了 style="cursor:hand" style="cursor:crosshair" 23.全屏显示 24.设为首页 与 加入收藏夹 ; { { if(proper_version>=5){ ; ; 这里是加入收藏夹的代码 <a href="#" onClick="window.external.addFavorite('http://xdcity.cn.st';.'心动一百城市')" target="_self" title="==http://xdcity.cn.st==">加入收藏夹</a> 25.flash图片效果! //--> </s cript> 26.load 进度条 28.背景图片滚动 |