// //$(function(){ // //var box = $('.banner'); // var ul = box.children('ul'); // var li = ul.children('li'); // var w = li.width(); // var index = 0; // var len = li.length; // // li.first().clone().appendto(ul);//控制无缝滚动 // // $('.num03 a').hover(function(){ // index = $(this).index(); // $(this).addclass('cur').siblings().removeclass('cur'); // w=w==0?li.width():w; // ul.stop().animate({ // marginleft : index*-w // }); // }); // //var next=function(){ // w=w==0?li.width():w; // if(ul.is(":animated")){ return false;} // index++; // if(index == len){ // $('.num03 a').eq(0).addclass('cur').siblings().removeclass('cur'); // ul.animate({ // marginleft : index*-w // },function(){ // ul.css('margin-left',0) // index = 0; // // }); // }else{ // $('.num03 a').eq(index).addclass('cur').siblings().removeclass('cur'); // ul.animate({ // marginleft : index*-w // }); // } //} // // var time=null; // var auto=function(){ // time=window.setinterval(function(){ // next(); // },3000) // } // $(".banner ul li").hover(function(){ // clearinterval(time) // },function(){ // auto() // }) // auto(); // // // }) $(function () { $( function () { // $(".content-bottom-left dl").eq(0).hide(); $('.nav li').hover(function () { cleartimeout(this.i); $(this).children('.erji').slidedown(); }, function () { var self = this; this.i = settimeout(function () { $(self).children('.erji').hide(); }, 100); }); } ); /*var erjilen=$(".erji1 a").length; if(erjilen%2!=0) { $(".erji1 a:last").css("border-bottom","none"); }*/ //二级导航边框控制 $('.nav li:last()').css('margin-right', '0'); /*图片轮播*/ //$(function () { // var len = $(".num03 > li").length; // var index = 0; // var adtimer; // $(".num03 li").mouseover(function () { // index = $(".num03 li").index(this); // showimg03(index); // }).eq(0).mouseover(); // //滑入 停止动画,滑出开始动画. // $(".banner").hover(function () { // clearinterval(adtimer); // }, function () { // adtimer = setinterval(function () { // showimg03(index) // index++; // if (index == len) { index = 0; } // }, 5000); // }).trigger("mouseleave"); // // }) // // 通过控制left ,来显示不同的幻灯片 // function showimg03(index) { // //var adwidth = $(window).width(); // var adwidth = $(".banner img").width(); // $(".slider03 ").stop(true, false).animate({ left: -adwidth * index }, 1000); // $(".num03 li").removeclass("cur").eq(index).addclass("cur"); // } /* ;(function($){ var myindex=0; $.fn.tabs=function(option){ var self=$(this); var init={ container:"", container_child:"", current:"", guanlian:"" }; var setting=$.extend(init,option); self.removeclass(setting.current); self.eq(0).addclass(setting.current); self.click( function(){ myindex=self.index(this); console.log(myindex); self.eq(myindex).addclass(setting.current).siblings().removeclass(setting.current); if(setting.guanlian) { $(setting.guanlian).eq(myindex).addclass(setting.current).siblings().removeclass(setting.current); } var mywidth=$(setting.container_child).eq(0).innerwidth(); var tabcotwidth=myindex*mywidth; $(setting.container).animate({marginleft:"-"+tabcotwidth+"px"},500); } ); } })(jquery); $(function(){ $(".content-top h3 a").tabs({ container:".content-top-cut", container_child:".content-top-cut ul", current:"cur", guanlian:".diandian a" }); $(".diandian a").tabs({ container:".content-top-cut", container_child:".content-top-cut ul", current:"cur", guanlian:".content-top h3 a" }); } ); */ }) $(function () { $(".content-top h3 a").eq(0).addclass("cur") $(".content-top h3 a").click(function () { var t = $(this).index(); $(".content-top h3 a").removeclass("cur").eq(t).addclass("cur"); $(".contentbox").hide().eq(t).show(); }); //20150130 $(".news_hangye li").each(function() { //var ahtml=$(this).find("a:not(span)").html(); // alert(ahtml) // ahtml.replace("
",""); $(this).find("br").replacewith(" ") }); }) //lhl新闻聚焦-公司新闻-下拉 $(function () { $('.enter span').hover(function () { $(this).find('ul').stop().slidedown(); }, function () { $(this).find('ul').stop().slideup(); }) }) $('.neicentt ul li:nth-child(2n)').css('margin-right', '0'); $('.renzgf li:last()').css('margin-right', '0'); //荣誉点击大图 window.onload = function () { $('.zhez').css('height', $('body').height()); $('.zhez').css('height', $(document).height()); $('.guanbi').click(function () { $('.zhez,.dat').hide(); }); $('.rongyu li img').click(function () { var i = $(this).attr('rel'); $('.dat,.zhez').show(); $('.dat img').attr('src', i); }); $('.rongynr li img').click(function () { var i = $(this).attr('rel'); $('.dat,.zhez').show(); $('.dat img').attr('src', i); }); $('.rongynr li:nth-child(4n)').css('margin-right', '0'); }; //高新投之路 滚动+选项卡 $(function () { var ul = $('.dashi ul'); var li = $('.dashi ul li'); var w = ul.children('li').outerwidth(true); var len = ul.children('li').length; index=0; var t_index=$(this).index(); var i=0; $('.zuo').click(function () { if(i==0)return false;else i-=1; $('.dashi ul li').eq(i).click(); }); $('.you').click(function () { if(i>=len-1)return false;else i+=1; $('.dashi ul li').eq(i).click(); }); $('.dashi ul li').each(function (i) { $(this).attr("index", i) }); $('.dashi ul li').click(function () { if(ul.is(":animated")){ return false}; var t = $(this).attr("index"); $('.thc').hide().eq(t).show(); $(this).children('a').addclass('cur'); $(this).siblings().children('a').removeclass('cur'); i=$(this).index(); if(i"+data+""); $(".zml_tc").fadein(); var hei=$(".scroll_content").find("div").height(); if(hei>340){ new slider(gets('scroll'), gets('scroline'), gets('scroright'), { topvalue: 100, bottomvalue: -100 });}else{ $(".scroll_line").hide(); } }); }) $(".tc_con2 em.close").click(function () { $(".zml_tc").fadeout(); }) $(".thc ul li").addclass("clear"); $(".content-top-cut ul.youshi li").hover(function(){ $(this).addclass("cur").siblings("li").removeclass("cur") }) //历史固定 $(function () { var ie6 = /msie 6/i.test(navigator.useragent) , dv = $('.zml_fix'), st; dv.attr('otop', dv.offset().top); //存储原来的距离顶部的距离 $(window).scroll(function () { st = math.max(document.body.scrolltop || document.documentelement.scrolltop); if (st >= parseint(dv.attr('otop'))) { if (ie6) {//ie6不支持fixed属性,所以只能靠设置position为absolute和top实现此效果 dv.css({ position: 'absolute', top: st }); } else if (dv.css('position') != 'fixed') dv.css({ 'position': 'fixed', top: 0 }); } else if (dv.css('position') != 'static') dv.css({ 'position': 'static' }); }); }); //11-7 $(".yewutd li").hover(function(){ $(this).children("dl").stop().slidedown().siblings("dl").hide(); },function(){ $(this).children("dl").stop().slideup(); }) //11-8 var a=[]; $(".nav li").each(function(i){ a[i]=$(this).outerwidth()+40; if(i>0) a[i]+=a[i-1]; }) $('.nav li').hover(function() { $(".nav li a").removeclass("cur") var ind=$('.nav li').index($(this)); $(this).parent().children('em').show().stop().animate({ marginleft: (ind==0?0:a[ind-1])+($(this).width()-70)/2 },300); }); }) //12-15 $(function(){ $(".headone p a.wxin").children("i").hide() $(".headone p a.wxin").hover(function(){ $(this).children("i").show(); },function(){ $(this).children("i").hide(); }) for (i = 0; i < $("a").length; i++) { if ($("a:eq(" + i + ")").attr("href") == "") { $("a:eq(" + i + ")").attr("href", "javascript:void(0)"); } } }) //12-22 $(function(){ $(".headone dl dd.cur").hover(function(){ $(".dd_wx").show() },function(){ $(".dd_wx").hide() }) }) $(function(){ var imgwidht = 1920; var imgheight = 470; var winwidht =$(window).width(); $(".bannerxg").css({widht:winwidht,height:(470/1920*winwidht)}) })