黑塔利亚米团:网页制作的代码问题

来源:百度文库 编辑:高校问答 时间:2024/04/28 07:45:19
我想实现下面的功能,请帮帮忙啊。谢谢啊

加入收藏 | 设为首页

就这2个,谢谢啊

<a class="anchor-text" onclick="window.external.AddFavorite(location.protocol + '//' + location.hostname + '相对地址', '收藏名');" onmouseout="window.status=''; this.style.cssText='cursor: auto;'" onmouseover="window.status='将该页面添加至您的“收藏夹”中'; this.style.cssText='cursor: hand;'">立即将其添加至您的“收藏”菜单中</a>
<a href="http://www.baidu.com/" onmouseover="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com');" target="_blank">设为首页</a>

<a onClick="this.style.behavior='url(#default#homepage)';this.sethomepage

('http://www.baidu.com/');return false;"href="http://www.baidu.com/"
>设为首页</a>

<a href="javascript:window.external.addFavorite('http://www.baidu.com','百度')">加入收藏 </a>

<a target=_top href=javascript:window.external.AddFavorite('http://')>加入收藏</a>

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