javascript|脚本
代码:
<script type="text/javascript">
function addBookmark(title,url) {
if (window.sidebar) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</script> 页面使用:<a href=javascript:addBookmark('dodoblog','http://www.xrss.cn')>
添加到收藏</a>
时间: 2024-08-03 14:09:25