首页 新闻 会员 周边

添加收藏夹功能代码,火狐下打开添加的收藏夹打开位置出问题。代码如下,效果如下图

0
[已关闭问题] 关闭于 2012-04-23 16:24
<script type="text/javascript">
$("#addcollect").click(function(){ 
var title = "filepuma.com - Free software downloads and reviews"; 
var url = 'http://www.filepuma.com/'; 
var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd': 'CTRL'; 
var msg = 'You can try keyboard shortcut (0) to bookmark filepuma.com'; 
var temp = msg.replace('(0)',' <b>' + ctrl + ' + D</b> '); 
if(document.all){ 
    window.external.addFavorite(url , title); 
}else if(window.sidebar){ 
    window.sidebar.addPanel(title , url,""); 
}else{ 
    elex.dialog.alert('<div class="elexDialogTips">'+ temp +'</div>',{title:'filepuma.COM',time : 5020000 , showClose:true}); 
}
});
</script>

下面是效果图,想以标签形式打开,但是在左侧打开了。。。。

wlinbj的主页 wlinbj | 初学一级 | 园豆:199
提问于:2012-04-11 09:58
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册