【个人收藏】获得本页面URL地址的几个个JS代码
2006年12月30日 19:53 | by 猢狲
代码1:
代码2:
<script>
function selecturl(){
z=document.body.createTextRange();
z.moveToElementText(selecturlDiv);
z.select();
}
</script>
<span onmousemove='selecturl()' id=selecturlDiv><script>document.write(location.href)</script>
function selecturl(){
z=document.body.createTextRange();
z.moveToElementText(selecturlDiv);
z.select();
}
</script>
<span onmousemove='selecturl()' id=selecturlDiv><script>document.write(location.href)</script>
代码2:
【个人收藏】各大搜索引擎网站登录入口 01.14更新
2006年12月28日 19:41 | by 猢狲
【个人收藏】网页精华代码集
2006年12月6日 12:30 | by 猢狲
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;"
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;"
【个人收藏】常用的网页广告代码
2006年12月5日 12:14 | by 猢狲
效果演示:
http://www.makewing.com/lanren/js/01/index.htm
http://www.makewing.com/lanren/js/02/index.htm
http://www.makewing.com/lanren/js/03/index.htm
http://www.makewing.com/lanren/js/04/index.htm
http://www.makewing.com/lanren/js/05/index.htm
http://www.makewing.com/lanren/js/06/index.htm
http://www.makewing.com/lanren/js/07/index.htm
http://www.makewing.com/lanren/js/08/index.htm
http://www.makewing.com/lanren/js/09/index.htm
http://www.makewing.com/lanren/js/10/index.htm
http://www.makewing.com/lanren/js/11/index.htm
http://www.makewing.com/lanren/js/12/index.htm
http://www.makewing.com/lanren/js/13/index.htm
http://www.makewing.com/lanren/js/14/index.htm
http://www.makewing.com/lanren/js/15/index.htm
http://www.makewing.com/lanren/js/16/index.htm
http://www.makewing.com/lanren/js/01/index.htm
http://www.makewing.com/lanren/js/02/index.htm
http://www.makewing.com/lanren/js/03/index.htm
http://www.makewing.com/lanren/js/04/index.htm
http://www.makewing.com/lanren/js/05/index.htm
http://www.makewing.com/lanren/js/06/index.htm
http://www.makewing.com/lanren/js/07/index.htm
http://www.makewing.com/lanren/js/08/index.htm
http://www.makewing.com/lanren/js/09/index.htm
http://www.makewing.com/lanren/js/10/index.htm
http://www.makewing.com/lanren/js/11/index.htm
http://www.makewing.com/lanren/js/12/index.htm
http://www.makewing.com/lanren/js/13/index.htm
http://www.makewing.com/lanren/js/14/index.htm
http://www.makewing.com/lanren/js/15/index.htm
http://www.makewing.com/lanren/js/16/index.htm
【个人收藏】加快页面载入速度的方法
2006年12月2日 11:32 | by 猢狲
为了使网站获得广告收入及添加多功能服务(如在网页中内嵌天气预报、搜索引擎、标签、数据统计等外部组件),站长们会不断在网站页面上添加林林总总的“各司其职”的广告/插件代码,这样无疑将不同程度地影响页面载入速度。我们通过在网页中插入近来流传于网上的一段代码,即可实现最后载入这些相对不太重要的广告/插件的目的,以使访客能够以最快的速度浏览到实质性网页内容。
代码一:(电脑报)
把“<span id="myads">广告/插件载入中,请等待</span>”这段代码放置于要插入广告的页面顶端位置,在网页底端插入这段代码:
代码一:(电脑报)
把“<span id="myads">广告/插件载入中,请等待</span>”这段代码放置于要插入广告的页面顶端位置,在网页底端插入这段代码:







