以测试结果为准……
----------
<A href="javascript:window.external.addFavorite('http://www.lawtime.cn', 'i7766')"
target=_self>加入收藏夹</A>
----------
<script>
function addfavorite()
{
if (document.all)
{ window.external.addFavorite('http://www.lawtime.cn','lawtime.cn');); }
else if (window.sidebar)
{ window.sidebar.addPanel('lawtime.cn', '[url]http://www.lawtime.cn[/url]', ""); }
}
</script>
<a href="#" onclick="addfavorite()">把lawtime.cn加入收藏</a>

下面这个也是Javascript加入收藏夹代码,同样支持firefox
<script type="text/javascript">
function addBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</script> 页面使用:<a href=javascript:addBookmark('lawtime','http://www.lawtime.cn')>
添加到收藏</a>
--------------.