日期:2014-05-16  浏览次数:20438 次

js特效-实现、后退、前进、停止、刷新、加入收藏等功能
<a href="javascript:history.back(-1)">后退</a>
<a href="javascript:history.back(1)">前进</a>
<a href="javascript:window.location.reload()">刷新</a>
<a href="javascript:document.execCommand('stop')">停止</a>

<a href=about:home>返回主页</a>

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

加入收藏
<span style="CURSOR: hand" onClick="window.external.addFavorite('http://blog.sina.com.cn/huaiblog1','Miracle')" >加入收藏</span>

图片

设为首页
<a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://blog.sina.com.cn/huaiblog1');"><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://blog.sina.com.cn/huaiblog1','Miracle')" /></a>