加入收藏夹,若已加入,则一天内不在重新跳出


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58
 //IE
window.onbeforeunload=function(){
if(event.clientX>document.body.clientWidth && event.clientY < 0 || event.altKey){
    if(winHref.indexOf("lvshou66")<0){
    window.external.addFavorite("http://"+location.hostname,"绿瘦首页收藏!");
    }
}
}
//FF
window.onunload=function(){
    if(window.sidebar){
        if(document.body.clientWidth==0){    
            if(winHref.indexOf("lvshou66")<0){
                window.sidebar.addPanel("绿瘦首页收藏!","http://"+location.hostname, "");
            }
        }
    }
}