function addfavorite()
{
if (document.all)
{
window.external.addFavorite(top.location.href,document.title);
}
else
{
try
{
window.sidebar.addPanel(document.title, top.location.href, "");
}
catch (e)
{
alert("您的浏览器不支持自动添加收藏,请使用 Ctrl+D 进行手动添加");
}
}
}