js 页面收藏

<script type="text/javascript">
function bookmarksite(title, url){
if (document.all)
          window.external.AddFavorite(url, title);
else if (window.sidebar)
          window.sidebar.addPanel(title, url, "")
}
</script>
<a href="javascript:bookmarksite('简单的猪的博客', 'http://holyrain1314.blog.163.com')">加入收藏</a>

 

posted @ 2013-02-16 10:24  南潇湘  阅读(147)  评论(0编辑  收藏  举报