$(function(){ $(".nav li").hover(function() { $(this).addclass("hover"); $(this).find("#pop").stop(true,true).slidedown(); }, function() { $(this).removeclass('hover') $(this).find("#pop").stop(true,true).slideup(); }); }) $(function () { //鍥為《閮? $(".i_top > a").click(function() { $('html,body').stop().animate({scrolltop:0},500); }); jquery(".banner").slide({maincell:".bd ul",effect:"fold",autoplay:true,delaytime:1000}); jquery(".scroll").slide({maincell:".bd ul",autoplay:true,effect:"leftmarquee",vis:6,intertime:10}); jquery(".home-f5 .tab").slide({trigger:"click",delaytime:0}); //閫夋嫨鍣? $(".case_list ul li:nth-child(3n)").css("margin-right","0px"); $(".v_list li:nth-child(3n)").css("margin-right","0px"); $(".nlist dd:nth-child(3n)").css("margin-right","0px"); $(".n-f2 .info:eq(0)").addclass('eq1'); $(".home-f1 ul li:last").css("margin-right","0px") $(".home-f5 .tab .bd ul li:last, .home-f7 dl dd:last").css("margin-right","0px") $(".home-f5 .tab .hd ul li:last").css("border-right","0px") //闂彿寮瑰嚭 $(".why").hover(function() { $(this).find("p").show(); $(this).css("z-index","7") }, function() { $(this).find("p").hide(); $(this).css("z-index","0") }); //select閫夋嫨 $(".select p").click(function() { $(".select ul").hide(); $(this).next("ul").toggle(); }); $(function(){ $(document).bind("click",function(e){ var target = $(e.target); if(target.closest(".select p").length == 0){ $(".select ul").hide(); } }) }) $(".td-list li").hover(function() { $(this).find("span").stop(true,true).fadeout(); }, function() { $(this).find("span").stop(true,true).fadein(); }); $(".home-f2 ul li").hover(function() { $(this).find("span.bg").stop(true,true).fadeout(); }, function() { $(this).find("span.bg").stop(true,true).fadein(); }); $("..home-f1 ul li .pic").hover(function() { $(this).find("span").stop(true,true).fadein(); $(this).addclass('on'); }, function() { $(this).find("span").stop(true,true).fadeout(); $(this).removeclass('on') }); }) //鎷涜仒寮瑰嚭 function job() { $(".fix-bg").fadein(500); $("#job-pop").delay(500).slidedown(); } $(function () { $(".close").click(function() { $("#job-pop").slideup(); $(".fix-bg").delay(500).fadeout(500); }); }) $(function () { $(".scroll .bd ul li").hover(function() { $(this).find("span.bg").fadeout(); $(this).find("p").stop().animate({height: '71px'},200); }, function() { $(this).find("span.bg").fadein(); $(this).find("p").stop().animate({height: '0px'},200); }); }) //琛ㄥ崟 // $(function () { // $("input[name='name']").focus(function(){ // if($(this).val()=="鎮ㄧ殑绉板懠") // {$(this).val("");} // }); // $("input[name='name']").blur(function(){ // if($(this).val()=="") // {$(this).val("鎮ㄧ殑绉板懠");} // }); // $("input[name='company']").focus(function(){ // if($(this).val()=="鎮ㄦ墍浠h〃鐨勫叕鍙?) // {$(this).val("");} // }); // $("input[name='company']").blur(function(){ // if($(this).val()=="") // {$(this).val("鎮ㄦ墍浠h〃鐨勫叕鍙?);} // }); // $("input[name='phone']").focus(function(){ // if($(this).val()=="鎮ㄧ殑鑱旂郴鐢佃瘽锛屽涓敤锛屽垎闅?) // {$(this).val("");} // }); // $("input[name='phone']").blur(function(){ // if($(this).val()=="") // {$(this).val("鎮ㄧ殑鑱旂郴鐢佃瘽锛屽涓敤锛屽垎闅?);} // }); // $("textarea[name='message']").focus(function(){ // if($(this).val()=="璇疯緭鍏ユ偍鐨勮缁嗛渶姹傛弿杩帮紝鎴戜滑灏嗗湪24灏忔椂鍐呯粰鍑虹瓟澶?) // {$(this).val("");} // }); // $("textarea[name='message']").blur(function(){ // if($(this).val()=="") // {$(this).val("璇疯緭鍏ユ偍鐨勮缁嗛渶姹傛弿杩帮紝鎴戜滑灏嗗湪24灏忔椂鍐呯粰鍑虹瓟澶?);} // }); // }) //寰俊 $(function () { $(".weicode ul li .m").hover(function() { $(this).find(".markinfo").stop().animate({bottom: '0px'},500); }, function() { $(this).find(".markinfo").stop().animate({bottom: '270px'},500); }); }) $(function () { $(".icon").click(function(){ var rel = $(this).attr("rel"); var $backgroundmark = $("#backgroundmark"); if($backgroundmark.css("display") == "none") { $("#backgroundmark").show(); $("#danchu").stop(false,true).animate({"top":180},{duration:1200, easing:"easeoutbounce", complete:function(){ $("#" + rel).fadein(); } }); } else { $(".weibo,.400phone").hide(); $("#" + rel).fadein(); } }); $("#danchuclose").click(function(){ $("#danchu").stop(false,true).animate({"top":-400},{duration:800, complete:function(){ $(".weibo,.400phone").hide(); $("#backgroundmark").hide(); } }); }); }) $(function () { //鏀惧ぇ闀滄晥鏋? if ($(".jqzoom img").attr('jqimg')) { $(".jqzoom").jqueryzoom({ xzoom: 305, yzoom: 250, offset: 0}); } // 鍥剧墖鏇挎崲鏁堟灉 $('.scroll ul li').click(function(){ $('.scroll ul li').removeclass(); $(this).addclass('on'); $('.ppic .pic img').attr('src', $(this).children('img:first').attr('src')); $('.ppic .pic img').attr('jqimg', $(this).attr('bigimg')); }); }) $(function(){ $('.address table tr ').live('click',function(){ $(this).addclass('on').siblings().removeclass('on'); $(this).find('input').attr('checked','checked'); $(this).find('span').html('鈭?).siblings().html(''); $(this).siblings().find('span').html(''); }) $('.member .add_address').click(function() { $('.address_alter').toggle(); }); }) function flow_add_address() { var person = $('#person').val(); var tel = $('#tel').val(); var address = $('#address').val(); var zipcode = $('#zipcode').val(); $.ajax({ url:addressurl, data:{person:person,tel:tel,address:address,zipcode:zipcode}, type:'post', datatype:'json', success:function(res) { if(res.status==1) { $('.address table tr:eq(0)').after(res.info); } else { alert(res.info); } } }) } function flow_order() { address = $('[name=address_id]:checked').val(); $.ajax({ url:orderurl, data:{address:address}, type:'post', datatype:'json', success:function(res) { if(res.status==1) { location.href=res.url } else { alert(res.info); } } }) } $(function(){ $('.member_submit .close').click(function() { if(confirm('纭鍏抽棴璁㈠崟?')) return true; else return false; }); }) function contentsize(size) { $('#news_content p').each(function(k,v){ $(v).css('fontsize',size+'px'); }) $('#news_content span').each(function(k,v){ $(v).css('fontsize',size+'px'); }) }