Tips:点此可运行HTML源码

JS添加收藏夹

canRun

<a href="#" onclick="if (document.all){window.external.addFavorite('http://www.cnblogs.com/','博客园');}else if (window.sidebar){window.sidebar.addPanel('博客园', 'http://www.cnblogs.com/', '');}">收藏指定页</a>

<a href="#" onclick="if (document.all){window.external.addFavorite(document.URL,document.title);}else if (window.sidebar){window.sidebar.addPanel(document.title, document.URL, '');}">收藏当前页</a>
posted @ 2012-05-15 09:47  Zjmainstay  阅读(298)  评论(0编辑  收藏  举报