var _hmt = _hmt || [];

dafa888bet.com

软件分类

欢迎您

和百度软件中心合作!

indexImgRewrite(); //图片分域名 function indexImgRewrite(){ var imgStore = new Array(); imgStore['banner'] = document.getElementById("banner").getElementsByTagName("img"); imgStore['softSet1'] = document.getElementById("softSet1").getElementsByTagName("img"); imgStore['softSet2'] = document.getElementById("softSet2").getElementsByTagName("img"); imgStore['specialSets'] = document.getElementById("specialSets").getElementsByTagName("img"); imgStore['rank1'] = document.getElementById("rank1").getElementsByTagName("img"); imgStore['rank2'] = document.getElementById("rank2").getElementsByTagName("img"); var elem = new Object(); var imgSrc = ""; //第一批img2 catchBack(imgStore['banner'], 0, "img2"); //第一批img3,4,5 for(i=0; i<9; i++){ elem = imgStore['softSet1'][i]; if(!setSrc(elem, "img"+(Math.floor(i/3)+3))){ continue; } } //第二批img3,4,5 for(i=0; i<9; i++){ elem = imgStore['softSet1'][i+9]; if(!setSrc(elem, "img"+(Math.floor(i/3)+3))){ continue; } } //第三批img3,4,5 for(i=0; i<9; i++){ elem = imgStore['softSet2'][i]; if(!setSrc(elem, "img"+(Math.floor(i/3)+3))){ continue; } } //第四批img3,4,5 for(i=0; i<9; i++){ elem = imgStore['softSet2'][i+9]; if(!setSrc(elem, "img"+(Math.floor(i/3)+3))){ continue; } } //第五批img3 catchBack(imgStore['specialSets'], 0, "img3"); //第五批img3 catchBack(imgStore['rank1'], 0, "img4"); //第五批img3 catchBack(imgStore['rank2'], 0, "img5"); } function setSrc(elem, cdn){ if(elem == null || elem == undefined){ return false; } var imgSrc = elem.getAttribute("imgSrc").replace("img1", cdn); elem.setAttribute("src", imgSrc); elem.style.display = "inline-block"; } function catchBack(elems, start, cdn){ for(i=0; i $(document).ready(function(){ //右侧排行下载文字效果 hoverRanklist($(".rank")); //打分Star显示 changeNumToStar(); //返回顶部按钮的定位 $( window).scroll(gotoTop); //显示下载 showSoftSetDownload(); /* $(".rank").each(function(i, e){ var elem = $(e).find("tr").eq(0); $(''+$(elem).html()+'').insertBefore(elem); $(elem).html($(elem).next(".hover").html()).addClass("add_hover"); }); */ var rj = new Object; rj.index = { animateBanner:new AnimateBanner($(".banner a"), $(".dot")) }; //首页动画播放 rj.index.animateBanner.init(); });