<a class="topother" href="javascript:window.external.addFavorite('http://www.url.com','显示的名字')" onclick="this.blur();">添加收藏</a>
<a class="topother" href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.url.com');this.blur();">设为首页</a>
<a class="topother" href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.url.com');this.blur();">设为首页</a>
function AddFavorite(strUrl,strTitle){
if (document.all){
window.external.addFavorite(strUrl,strTitle);
}else if (window.sidebar) {
window.sidebar.addPanel(strTitle,strUrl,'');
}
}