`

设为首页与加入收藏二种表现方法

阅读更多

文字型的

设为首页: 
<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');">设为首页</a>

加入收藏
<span style="CURSOR: hand" onClick="window.external.addFavorite('http://www.baidu.com','百度')" >加入收藏</span>

图片型的

设为首页
<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');"><img border="0" src="Images/About_2.gif" width="84" height="19" /></a>

加入收藏
<a href=#><img border="0" src="images/A_2.jpg" width="150" height="39" id="shoucang" onClick="window.external.addFavorite('http://www.baidu.com','百度')" /></a>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics