//services $(".serbox").hover( function () { $(this).children().stop(false,true); $(this).children(".serboxon").fadein("slow"); $(this).children(".pic1").animate({right: -110},400); $(this).children(".pic2").animate({left: 130},400); $(this).children(".txt1").animate({left: -320},400); $(this).children(".txt2").animate({right: 40},400); }, function () { $(this).children().stop(false,true); $(this).children(".serboxon").fadeout("slow"); $(this).children(".pic1").animate({right:130},400); $(this).children(".pic2").animate({left: -110},400); $(this).children(".txt1").animate({left: 40},400); $(this).children(".txt2").animate({right: -320},400); } ); //tab var curportflioi = "page21"; var nn; var curnumi=1; var jj=0; function showpagei(idi,nn,i){ for(var j=1;j<=nn;j++){ if(j==idi) { $("#box"+i+j).removeclass (); $("#box"+i+j).addclass ("tab1"); $("#page"+i+j).fadein(400); if(i==2) { //var hhh = $("#page"+i+j).height(); //$("#page"+i+j).height($("#"+curportflioi).height()); //$("#page"+i+j).animate({height: hhh},400,'', function(){ if(curportflioi != $(this).attr("id"))$(this).hide(); } ); curportflioi = "page"+i+j; } } else { $("#box"+i+j).removeclass (); $("#box"+i+j).addclass ("tab2"); //$("#page"+i+j).fadeout("fast"); $("#page"+i+j).hide(); } } } var zpshowed = false; function zpconclose() { $(".fullscreen").stop(false,true); $(".zpconfullscreen").stop(false,true); $("#indexdiv").show(); $(".conheadertop").hide(); $(".zpconfullscreen").animate({left: $(window).width()},1000,'easeoutexpo',function(){$(".zpconfullscreen").hide();zpshowed = false;}); } $(document).keyup(function(e) { if($(".zpconfullscreen").is(":hidden") || $(".fullscreen").is(":visible")) return; switch(e.which) { case 27: zpconclose(); $("html,body").animate({scrolltop:$("#portfolios").offset().top},0); break; case 37: $(".zpbtarrl").trigger("click"); break; case 39: $(".zpbtarrr").trigger("click"); break; } }); function zpconshow(url) { $(".zp_box").children().stop(false,true); $(".zp_box").children(".pop_tit").slideup("fast"); $(".fullscreen").stop(false,true); $(".zpconfullscreen").stop(false,true); $(".fullscreen").css("left",$(window).width()); $(".fullscreen").show(); $(".fullscreen").animate({left: 0},1000,'easeoutexpo',function(){getzpcon(url);}); } function getzpcon(url){ $(".zpconfullscreen").css("left",0); $("#indexdiv").hide(); $(".zpconfullscreen").html(""); $(window).scrolltop(0); $.ajax({url: url, success:function(data){ var bodystartstr = ''; var zpconhtml = data.substring(data.indexof(bodystartstr)+bodystartstr.length,data.indexof('')); $(".zpconfullscreen").html(zpconhtml); $(".zpconfullscreen").show(); if($.browser.msie && 9 > $.browser.version) { $("#toppicdiv img").load(function(){$(".fullscreen").hide();}); //$(window).scrolltop(0); } else { $("#toppicdiv img").load(function(){$(".fullscreen").fadeout(1000);}); //$(".fullscreen").fadeout(1000);//, function(){$(window).scrolltop(0);}); } $(".zpbtnew").hide(); $("#conheader .fl a").hover( function () { $(this).children().stop(false,true); $(this).children().fadein("normal"); }, function () { $(this).children().stop(false,true); $(this).children().fadeout("normal"); }); /* if($.cookie("view_keyup_tip_ed") != 'y') { $('
操控体验x
').css({left:$("#conheader").offset().left}).appendto($(".zpconfullscreen")); //$.cookie('view_keyup_tip_ed', 'y', {expires: 30}); } */ } }); } function zpconshow1(url) { $(".zpconfullscreen").stop(false,true); $(".fullscreen").stop(false,true); $(".fullscreen").css("left",$(window).width()); //$(".fullscreen").html(""); $(".fullscreen").show(); $(".fullscreen").animate({left: 0},500,'easeoutexpo',function(){getzpcon(url);}); } function zpconshow2(url) { $(".zpconfullscreen").stop(false,true); $(".fullscreen").stop(false,true); $(".fullscreen").css("left",-$(window).width()); //$(".fullscreen").html(""); $(".fullscreen").show(); $(".fullscreen").animate({left: 0},500,'easeoutexpo',function(){getzpcon(url);}); }