添加收藏的js<a href="Javascript:window.external.addFavorite('http://www.baidu.com','百度')" style="font-size: 12px">加入收藏</a>
<a οnclick="this.style.behavior=''url(#default#homepage)'';this.setHomePage(''http://www.www.com'')" href="#">设为首页</a>
<div class="tb1">
<span οnclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.m-xmm.cn/company/hy.aspx');"
style="cursor: pointer">设为首页</span></div>
<div class="tb2">
<span οnclick="window.external.addFavorite('http://www.m-xmm.cn/company/hy.aspx','企业行业—新买卖快搜搜—新电子商务搜索引擎')"
style="cursor: pointer">加入收藏</span></div>