//导航 $(function() { $(".mainlevel:has(div)").hover(function() { $(this).children("div").stop(true, true).slidedown(300) }, function() { $(this).children("div").stop(true, true).slideup(1) }) }); //首页banner $(function(){ $(".picscroll").slide({titcell:".hd ul",maincell:".bd ul",autopage:true,effect:"fold",autoplay:true, delaytime:2000}); $(".tips").slide({maincell:".bd ul",autopage:true,effect:"toploop",autoplay:true});//滚动新闻 js $(".case-ul").slide({titcell:".hd ul",maincell:".bd ul",autopage:true,effect:"left",autoplay:true,vis:3});; $(".partners").slide({maincell:".partners-cont ul",autoplay:true,effect:"leftmarquee",vis:7,intertime:50,trigger:"click"}); $(".foucs").slide({ titcell:".num ul", maincell:".pic", effect:"fold", autoplay:true, autopage:true, intertime:5000, delaytime: 500});//banner js $(".pic li").css("width","100%"); $(".case-ul").bind({ mouseover:function(){ $(this).find(" .arrow").css("display", "block"); }, mouseleave:function(){ $(this).find(" .arrow").css("display", "none"); } }); }); // javascript document function getobj(objid) { return document.getelementbyid(objid); } function tabselect(tableordivsheader,tableordivs,nowid,nowclass,defaultclass) { if(tableordivs!=null) { for(var i=0;i1) getobj(tableordivs[i]).style.display="block"; } else { getobj(tableordivsheader[i]).classname=defaultclass; if(tableordivs.length>1) getobj(tableordivs[i]).style.display="none"; } } } } function yw(nowid) { var tableordivsheader=new array("1","2"); var tableordivs=new array("tab1","tab2"); tabselect(tableordivsheader,tableordivs,nowid,"hong14lj","syqh"); } $(function(){ $(".subnav2").click(function(){ $(this).toggleclass("currentdd2").siblings(".subnav2").removeclass("currentdd2") $(this).toggleclass("currentdt2").siblings(".subnav2").removeclass("currentdt2") // 修改数字控制速度, slideup(500)控制卷起速度 $(this).next(".navcontent2").slidetoggle(500).siblings(".navcontent2").slideup(500); }) }) $(function() { $(".news-tab li").each(function(index) { $(this).click(function() { $(".news-tab li").removeclass("tab-air"); $(".news-tab li:eq(" + index + ")").addclass("tab-air"); $(".news-box").css("display", "none"); $(".news-box:eq(" + index + ")").css("display", "block"); }); }); });