liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*!
 * Copyright &copy; 2012-2013 <a href="http://www.jeeplus.org/">JeeSite</a> All rights reserved.
 */
 
// 添加收藏
function addFavorite(sURL, sTitle){
    if(!sTitle){sTitle = document.title;}
    try{
        window.external.addFavorite(sURL, sTitle);
    }catch (e){
        try{
            window.sidebar.addPanel(sTitle, sURL, "");
        }catch (e){
            alert("加入收藏失败,请使用Ctrl+D进行添加");
        }
    }
}
 
// 自动滚动:setInterval("autoScroll('.jcarousellite')",3000);
function autoScroll(obj){
    var height = $(obj).find("ul:first li:first").height()+3;
    $(obj).find("ul:first").animate({marginTop:"-" + height + "px"},'slow',function(){
            $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
    });
}