关注联楷|返回首页 | 网站案例 | 帮助中心

合作共赢、快速高效、优质的网站建设提供商

上海网站建设 

服务热线:021-61394118

上海联楷科技

五种设为首页的代码

作者:佚名   时间:2012-04-19   分享到:

1.图片链接
<a style="cursor:hand" onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.linksj.com');"><img width=16 height=16 border=0 src="images/logo.gif"><u> 设为首页</u></a>

2.文字型:
<a onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.linksj.com');" href="#">设为首页</a>

3.按钮型:
<input type="button" value=" 设为首页 " onclick="this.style.behavior='url(#default#homepage)';
this.sethomepage('http://www.linksj.com');" href="#">

4.离开时自动提示设为首页
<body onunload="basebody.style.behavior='url(#default#homepage)';
if(!(basebody.ishomepage('http://www.linksj.com')))basebody.sethomepage('http://www.linksj.com/');">

5.鼠标指向时提示设为首页
<a href="http://www.apple-wallpaper.com/" onmouseover="this.style.behavior='url(#default#homepage)';
this.sethomepage('http://www.linksj.com');" target="_blank">设为首页</a>



如没特殊注明,文章均为上海联楷网络原创,转载请注明来自:http://www.linksj.com/help/20151126/n868.html

上海联楷网络新闻