将网页设为浏览器首页或起始页或默认页
时间:2010-03-14 12:16来源:未知 作者:admin 点击:次
如今,很多朋友都拥有自己的网站,有些新手想添加个设为首页的功能,下面这段代码就可以实现这个功能: html head meta http-equiv = Content-Type content = text/html;charset=gb2312 title 虫虫技术在
如今,很多朋友都拥有自己的网站,有些新手想添加个“设为首页”的功能,下面这段代码就可以实现这个功能:
- <html>
-
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>虫虫技术在线|www.cccto.com|---设为首页</title>
- </head>
-
- <body>
- 右击鼠标查看代码
-
- <p>代码一:<span onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.cccto.com');" style="CURSOR: hand">设为首页</a></span></p>
- <p><br>
-
- 代码二:<a title="设为首页" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.cccto.com');" href="javascript:;">设为首页</a>
-
- </p>
-
- </body>
-
- </html>
(责任编辑:admin) |
------分隔线----------------------------