感谢您的支持,我会继续努力的!
打开微信扫一扫,即可进行扫码打赏哦
点我查看本站打赏源码!
Powered by RUNCODEX.COM,学的不仅是技术,更是梦想!!!
<!DOCTYPE html>
<html>
<body>
<a href="#" onclick="AddFavorite(window.location,document.title)" rel="sidebar">加入收藏</a>
</body>
</html>
xxxxxxxxxx
function AddFavorite(sURL, sTitle){
var sTitle='';
var sURL=location.href;
if (window.sidebar) return true;
try{
window.external.addFavorite(sURL, sTitle);
}catch(e){
alert( "加入收藏失败,请使用Ctrl+D进行添加" );
}
return false;
输入 CSS 代码……