//收藏 function addfavorite(url,title) { if (document.all) { window.external.addFavorite(url, title); } else if (window.sidebar) { window.sidebar.addPanel(title, url, ""); } else { alert("亲,您的浏览器不支持一键收藏 请直接使用Ctrl+D收藏本站,谢谢!"); } }
addfavorite("http://www.baidu.com","百度")