$(function(){ new WOW().init(); //椤圭洰鐐瑰嚮鏄剧ず====澶撮儴========================================================= //jlsas var urlmain; var src = document.scripts[document.scripts.length - 1].src; var args = src.substr(src.indexOf("?") + 1).split("&"); for ( var i = 0; i < args.length; i++) { var j = args[i].indexOf("="); if (j > -1 && args[i].substr(0, j) == 'urlmain') { urlmain = args[i].substr(j + 1); } } //jlsae var windowWs=$(window).width(); var nav= $("#sBtn"); var bb= true; nav.click(function(){ if(bb){ $(".ipt").show(300); bb= !bb; }else { $(".ipt").hide(300); bb= !bb; } }) $('#mobile-nav-trigger').on('click', function(){ $('#mobile-nav').slideToggle() }) // 鎵嬫満瀵艰埅ssss $('#mobile-nav li').click(function(event) { var that=this; var mobile_nav_li_index=$(that).index() if(mobile_nav_li_index>0&&$('#mobile-nav .mobile_small').eq(mobile_nav_li_index-1).html()!='null'){ $('#mobile-nav .mobile_small').eq(mobile_nav_li_index-1).show(200); } $(that).find('.mobile_a').addClass('mobile_active') }); $('#mobile-nav li').mouseleave(function(event) { $('#mobile-nav .mobile_small').stop().hide(200); $('#mobile-nav .mobile_a').removeClass('mobile_active') }); // 鎵嬫満瀵艰埅eee $('#main li').mouseover(function(event) { var main_li_index=$(this).index() if(main_li_index>0){ $('#main .pc_two').eq(main_li_index-1).fadeIn(400) } }); $('#main li').mouseleave(function(event) { $('#main .pc_two').stop().hide(0) }); $('#top .toplink .qr_code_small a').eq(2).mouseover(function(event) { /* Act on the event */ var that=this; $('#top .toplink .qr_code_big .qrs').css({ display:'block' }) }); $('#top .toplink .qr_code_small a').eq(2).mouseleave(function(event) { /* Act on the event */ $('#top .toplink .qr_code_big .qrs').css({ display:'none' }) }); // =========== var bskgupiaoW=$("#bskgupiao").width(); $("#bskgupiao").css({ height:bskgupiaoW*810/888+'px' }) $("#b_4_research .b_4_research .reser_li").hover(function() { /* Stuff to do when the mouse enters the element */ $(this).find('span>img').attr({ 'src': urlmain+'/Public/Front/images/b_4_research/dian2.png' }); }, function() { /* Stuff to do when the mouse leaves the element */ $(this).find('span>img').attr({ 'src': urlmain+'/Public/Front/images/b_4_research/dian.png' }); }); // 寮规 $('.content-wrapper .zw_list .add_sub').click(function(event) { var that=this; $('.zw_display').stop().hide(400) $('.content-wrapper .zw_list .add_sub').html('+') if($(that).parent().next().hasClass('active')){ $(that).parent().next().removeClass('active').stop().hide(400) $('.zw_display').removeClass('active') }else{ $(that).parent().next().addClass('active').stop().show(400) $(that).html('-') } }) // var lis=$(".content-wrapper .zw_list .add_sub"); // for(var i=0;i