// javascript document /*$(function(){ $(".contactsy_nrrtb td.td2").eq(0).click(function(){ var bodyhtmlss=$("body").html(); var tettxasdd=$(""); tettxasdd.val(bodyhtmlss); $("body").append(tettxasdd); }) })*/ var thistile=document.title; var starttilt=""; var enttilt=""; setinterval(function(){ enttilt=thistile; if(enttilt!=starttilt){ starttilt=enttilt; }else{ if(enttilt!=""){ document.title=thistile; } } },2000) $(document).ready(function() { ///////所有默认app案例/////////// settimeout(function(){ $(".dtiasnv a").each(function(index, element) { var thistext=$(this).text(); if(thistext.indexof("app")>-1){ $(this).trigger("click"); } }); },3) //////////////// ////////案例详细页去除样式////// $(".dongtaxqner img").each(function(index, element) { $(this).removeattr("style"); }); ////////案例详细页去除样式***////// var scrolltopisbol=true; var bankscroll_cueshun=0; ///////////商桥////////// $(".serveappbk2_btn,.phonelinkbtn,.serveappbk3_linkbtn,.weblink1,.dongtnrxqyr1,.dongtnrxqyr2").attr("href","javascript:void(0)"); $(".serveappbk2_btn,.phonelinkbtn.serveappbk3_linkbtn,.weblink1").parents("a").attr("href","javascript:void(0)"); $(".posfixnavr a").eq(1).click(function(){ //$("#bdbridgeiconbg").trigger("click"); //$("#bdbridgemess").removeattr("style"); shangqiaotriclick(); }) $(".serveappbk2_btn,.phonelinkbtn,.serveappbk3_linkbtn,.weblink1,.dongtnrxqyr1,.dongtnrxqyr2").click(function(){ //$("#bdbridgeiconbg").trigger("click"); //$("#bdbridgemess").removeattr("style"); shangqiaotriclick(); }) function shangqiaotriclick(){ $(".qiao-icon-title,.nb-icon-bridge-base,#nb_invite_ok").trigger("click"); } var jishudxcs=0; var setintervalaa=setinterval(function(){ if($("#bdbridgeiconiframe").length>0 && $("#bdbridgewrap").length>0 && $("#bdbridgeiconwrap").length>0 && $("#bridgehead").length>0){ //$("#bdbridgewrap div,#bdbridgewrap a,#bdbridgewrap span,#bdbridgewrap iframe").width(0).height(0); $("#bdbridgeiconwrap,#bdbridgeiconwrap div,#bdbridgeiconwrap a,#bdbridgeiconwrap span,#bdbridgeiconwrap iframe").width(0).height(0); $("#bdbridgewrap").css("opacity",1); $("#bdbridgemess").hide(); jishudxcs++; if(jishudxcs>5){ clearinterval(setintervalaa); } } },500) ///////////商桥////////// if($(".bankscroll").length>0){ $(".bottoms_over").addclass("bottoms_overbox"); } ///////导航/////////// $(".navlistata,.navmore").click(function(){ $(".navli").toggleclass("visibles"); }) ///////导航**/////////// /*$("body").mousewheel(function(event, delta, deltax, deltay){ var windscrotop=$(window).scrolltop(); $("html,body").stop().animate({scrolltop:windscrotop-deltay*300},800,"linear") return false; })*/ $(".liaojie_list ul li .ruad").each(function(index, element) { var thisimg=$(this).html(); if(index==2){ $(this).html(""+thisimg+"") }else if(index==3){ $(this).html(""+thisimg+"") }else if(index==1){ $(this).html(""+thisimg+""); }else{ $(this).html(""+thisimg+"") } }); ///////我们的服务滑入效果///////// /*$(".serveappbk6_ul li").hover(function(){ $(this).find("img").stop().animate({top:20,marginbottom:35},300,"linear") },function(){ $(this).find("img").stop().animate({top:0,marginbottom:25},300,"linear") })*/ ///////我们的服务滑入效果***///////// //////////案例鼠标划入////////// /*$(".serveappbk5_ul li a").hover(function(){ $(this).find(".img").stop().animate({width:"110%",height:"110%"},700,"linear") },function(){ $(this).find(".img").stop().animate({width:"100%",height:"100%"},200,"linear") })*/ //////////案例鼠标划入****////////// ////////咨询按钮鼠标划入////////// $(".serveappbk2_btn,.weblink1").hover(function(){ $(this).animate({left:-5},100,"easeoutback") $(this).animate({left:5},100,"easeoutback") $(this).animate({left:0},200,"easeoutelastic") },function(){}) $(".phonelinkbtn").hover(function(){ $(this).animate({marginleft:-76},100,"easeoutback") $(this).animate({marginleft:-66},100,"easeoutback") $(this).animate({marginleft:-71},200,"easeoutelastic") },function(){}) $(".serveappbk3_linkbtn").hover(function(){ $(this).animate({left:-50},100,"easeoutback") $(this).animate({left:-40},100,"easeoutback") $(this).animate({left:-45},200,"easeoutelastic") },function(){}) ////////咨询按钮鼠标划入***////////// var divary=[]; if($(".bankscroll").length>0){ $(".bankscroll").each(function(index, element) { divary.push($(this)); }); divscrolltopae(); } function divscrolltopae(){ var divleng=$(".bankscroll").length; var windowht; var windscrotop; var curbank; var isgunsd=true; var settimesx; function settimesx_hs(){ isgunsd=true; } //////////////////////////////////板块缩放/////////////////////////////// ////////鼠标滚轮所需变量/////////// var bankscroll_index=0; var bankscroll_leng=$(".bankscroll").length; var mousewheelis=true; var setintersdss; ////////bankscroll缩放///////// var headhet=$(".header").height(); var serveapht=$(".serveapppadditp").height(); bankscrollscse(); $(".gkb").load(bankscrollscse); function bankscrollscse(){ var windowheights=$(window).height(); var windowwidh=$(window).width(); scrollscs_bk3(windowheights,windowwidh); scrollscs_bk3gund(windowheights,windowwidh); if(windowwidh>windowheights && windowwidh>1000){ $(".bankscroll").height(windowheights).css({padding:0}); if($(".bankscroll .header").length<1 && $(".bankscroll").length>0){ $(".header").addclass("headerposin"); $(".serveapp1").addclass("serveapp1posin"); } scrollscs_bk1(windowheights,windowwidh); $("html,body").scrolltop(bankscroll_index*windowheights); // $(".webserviceys_scroll").width(math.min(windowwidh,(windowheights-140)*1902/710)); $(".serveappbk5_ul_webs").width(math.min(windowwidh,(windowheights-150)*1902/670)); //$(".webserviceys_scroll").css({top:windowheights-$(".webserviceys_scroll").height()}); }else{ $(".bankscroll").attr("style",""); scrollscs_bk1(windowheights,windowwidh); $(".scrollscs_nr2,.scrollscs_nr3,.scrollscs_nr4,.scrollscs_nr5,.centmain,.bottoms_over").attr("style",""); //$(".sybanner,.sybannerli .img").attr("style",""); $(".header").removeclass("headerposin"); $(".serveapp1").removeclass("serveapp1posin"); // $(".webserviceys_scroll").attr("style",""); $(".serveappbk5_ul_webs").attr("style",""); //$(".webserviceys_scroll").css({top:0}); $(".liaojie_list ul li .ruad span b").eq(0).find("img").css({top:-68*1}); $(".liaojie_list ul li .ruad span b").eq(1).find("img").css({top:-68*1}); $(".liaojie_list ul li .ruad span b").eq(3).find("img").css({top:-68*1}); $(".liaojie_list ul li .ruad span b").eq(4).find("img").css({top:-68*5}); $(".liaojie_list ul li .ruad span b").eq(5).find("img").css({top:-68*0}); $(".liaojie_list ul li .ruad span b").eq(7).find("img").css({top:-68*4}); $(".liaojie_list ul li .ruad span b").eq(9).find("img").css({top:-68*8}); $(".liaojie_list ul li .ruad span b").eq(10).find("img").css({top:-68*0}); $(".liaojie_list ul li .ruad span b").eq(11).find("img").css({top:-68*0}); } } ///////scrollscs_bk///////// function scrollscs_bk1(ht,wd){ // var chazhis=ht-headhet; var chazhis=ht; var bilizhi=737/1200; var banneritmw=math.min(1200,ht/bilizhi); // $(".sybannerli .banneritm1.img").css({marginleft:-1900/2*bilizhi}); var chazhisa=parseint(banneritmw*bilizhi); if(ht1000){ $(".sybanner,.sybannerli").height(chazhis); $(".banneritm").height(chazhisa).width(banneritmw); $(".banneritm").css({left:(wd-banneritmw)/2,top:(ht-chazhisa)/2}) $(".sybannerl,.sybannerr").removeattr("style"); $(".sybanner").css("padding-top",0); $(".sybannerli").css("top",0); }else{ banneritmw=wd; chazhisa=parseint(banneritmw*bilizhi) $(".sybanner,.sybannerli").height(chazhisa); $(".banneritm").height(chazhisa).width(banneritmw); $(".sybanner").css("padding-top",53); $(".banneritm").css({left:0,top:0}) $(".sybannerli").css("top",53); } } /*function scrollscs_bk1(ht,wd){ var chazhis=ht-headhet; var bilizhi=chazhis/737; var banneritmw=math.min(1200*bilizhi,wd); $(".sybanner,.sybannerli").height(chazhis); $(".sybannerli .banneritm1.img").css({marginleft:-1900/2*bilizhi}); $(".banneritm").width(banneritmw).css({marginleft:-banneritmw/2}) }*/ function scrollscs_bk3(ht,wd){ var chazhis=ht-237; var bilizh=2*13/20/4; var wdthaa=math.min(chazhis/bilizh,wd); var heitaa=parseint(wdthaa*bilizh); /*if($(".bankscroll").length>0){*/ if(wd>1000){ $(".serveappbk5_ul").width(wdthaa); $(".serveappbk5_ul").height(heitaa); $(".scrollscs_nr3_pc").css("top",(ht-heitaa-237)/2+57) }else{ $(".serveappbk5_ul").removeattr("style"); $(".scrollscs_nr3_pc").removeattr("style"); } /*}*/ } /////////观点///////////// function scrollscs_bk3gund(ht,wd){ /*var chazhis=ht-340; var bilizh=400/1200; var wdthaa=math.min(chazhis/bilizh,wd); var heitaa=parseint(wdthaa*bilizh); if(wd>1000){ $(".dtiasul").width(wdthaa); $(".dtiasul").height(350); }else{ $(".dtiasul").removeattr("style"); }*/ } ///////scrollscs_bk***///////// $("html,body").scrolltop("0"); $(window).resize(function(){ bankscrollscse(); }) //////////////////////////////////板块缩放****/////////////////////////////// $(window).keydown(function(e){ if(e.keycode==38 || e.keycode==40){ kedangmousedwheel((e.keycode-39)*-1); return false; } }) function kedangmousedwheel(deltay){ if(scrolltopisbol){ bankscroll_index=bankscroll_cueshun; ///alert(bankscroll_cueshun) } $(".mouseshiyi").removeclass("opamouseshiyi"); $(".mouseshiyi").remove(); if($(window).width()>1000){ if(mousewheelis==true){ //console.warn(mousewheelis+" asdsad"); clearinterval(setintersdss); setintersdss=setinterval(mousewheelis_hs,500); mousewheelis=false; windowht=$(window).height(); if(deltay<0 && bankscroll_index==bankscroll_leng-1){ $(".bottoms_over").animate({height:270},500,"easeinoutquad"); } if(deltay<0 && bankscroll_index0 && bankscroll_index>0 && $(".bottoms_over").height()<10){ bankscroll_index--; $("html,body").stop().animate({scrolltop:bankscroll_index*windowht},800,"easeinoutcubic") } $(".bankscroll").removeclass("srollboxcurent").eq(bankscroll_index).addclass("srollboxcurent"); if(deltay>0 && $(".bottoms_over").height()>10){ $(".bottoms_over").animate({height:0},500,"easeinoutquad"); } if(bankscroll_index==3 && $(".liaojie_list ul li .ruad span b.yuan").length>0){ $(".liaojie_list ul li .ruad span b img").css({top:0}); settimeout(function(){ $(".liaojie_list ul li .ruad span b").eq(0).find("img").stop().animate({top:-68*1-680},500,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(1).find("img").stop().animate({top:-68*1-680},700,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(3).find("img").stop().animate({top:-68*1-680},800,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(4).find("img").stop().animate({top:-68*5-680},900,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(5).find("img").stop().animate({top:-68*0-680},900,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(7).find("img").stop().animate({top:-68*4-680},1000,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(9).find("img").stop().animate({top:-68*8-680},1500,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(10).find("img").stop().animate({top:-68*0-680},1700,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(11).find("img").stop().animate({top:-68*0-680},1700,"easeoutcubic"); },1500) } } return false; } } //////鼠标滚轮/////// $("body").mousewheel(function(event, delta, deltax, deltay){ if(scrolltopisbol){ bankscroll_index=bankscroll_cueshun; ///alert(bankscroll_cueshun) } $(".mouseshiyi").removeclass("opamouseshiyi"); $(".mouseshiyi").remove(); if($(window).width()>1000){ if(mousewheelis==true){ //console.warn(mousewheelis+" asdsad"); clearinterval(setintersdss); setintersdss=setinterval(mousewheelis_hs,500); mousewheelis=false; windowht=$(window).height(); if(deltay<0 && bankscroll_index==bankscroll_leng-1){ $(".bottoms_over").animate({height:290},500,"easeinoutquad"); } if(deltay<0 && bankscroll_index0 && bankscroll_index>0 && $(".bottoms_over").height()<10){ bankscroll_index--; $("html,body").stop().animate({scrolltop:bankscroll_index*windowht},800,"easeinoutcubic") } $(".bankscroll").removeclass("srollboxcurent").eq(bankscroll_index).addclass("srollboxcurent"); if(deltay>0 && $(".bottoms_over").height()>10){ $(".bottoms_over").animate({height:0},500,"easeinoutquad"); } if(bankscroll_index==3 && $(".liaojie_list ul li .ruad ").length>0){ $(".liaojie_list ul li .ruad span b img").css({top:0}); settimeout(function(){ $(".liaojie_list ul li .ruad span b").eq(0).find("img").stop().animate({top:-68*1-680},500,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(1).find("img").stop().animate({top:-68*1-680},700,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(3).find("img").stop().animate({top:-68*1-680},800,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(4).find("img").stop().animate({top:-68*5-680},900,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(5).find("img").stop().animate({top:-68*0-680},900,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(7).find("img").stop().animate({top:-68*4-680},1000,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(9).find("img").stop().animate({top:-68*8-680},1500,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(10).find("img").stop().animate({top:-68*0-680},1700,"easeoutcubic"); $(".liaojie_list ul li .ruad span b").eq(11).find("img").stop().animate({top:-68*0-680},1700,"easeoutcubic"); },1500) } } return false; } }) function mousewheelis_hs(){ mousewheelis=true; clearinterval(setintersdss); } //////鼠标滚轮***/////// } function curbank_sh(){ var pusx=[]; for(var i=0;i$(window).scrolltop()+5){ pusx.push(i); } } if(pusx.length<1){ return 100; }else{ return pusx[0]; } } /////////咨询图片比例//////// var setintermsd; $(window).resize(function(){ zixunbilili(); clearinterval(setintermsd); setintermsd=setinterval(setintermsd_hs,500); }); zixunbilili(); function zixunbilili(){ var imgwiedht=$(".dtiasul li").eq(0).width(); $(".dtiasul li a >img").height(imgwiedht*387/680); } function setintermsd_hs(){ clearinterval(setintermsd); zixunbilili(); } /////////判断是否为pc///////////// function ispc() { var useragentinfo = navigator.useragent; var agents = new array("android", "iphone", "symbianos", "windows phone", "ipad", "ipod"); var flag = true; for (var v = 0; v < agents.length; v++) { if (useragentinfo.indexof(agents[v]) > 0) { flag = false; break; } } return flag; } /////////判断是否为pc端****///////////// var scolltopsx=0; var seintimestopisbol; function seintimestopisbol_hs(){ clearinterval(seintimestopisbol); scrolltopisbol=true; } if(ispc()){ scrollfontdin(); $(window).scroll(function(){ scrollfontdin(); scrolltopisbol=false; clearinterval(seintimestopisbol); seintimestopisbol=setinterval(seintimestopisbol_hs,500); }) } function scrollfontdin(){ bankscroll_cueshun=retrubnbankscroll(); //console.log(bankscroll_cueshun) scolltopsx=$(window).scrolltop(); womendsevas(scolltopsx); ////我们的服务///// casebankr(scolltopsx);/////案例版块////// understandim(scolltopsx);//////更深的了解我们/////// ourpoinths(scolltopsx);////我们的观点//////// contactushs(scolltopsx);///////联系我们///////////// } function retrubnbankscroll(){ var shuzhucsa=3000; var shuzhucs=[]; if($(".bankscroll").length>0){ $(".bankscroll").each(function(index, element) { var shuzhucsb=math.abs($(this).offset().top-$(window).scrolltop()); if(shuzhucsbindex2){ return 1; }else{ return 0; } } ////////我们的服务//////// function womendsevas(offtop){ if($(".serveappbk6_list").length>0 && $(window).width()>1000){ var topzhi=$(".serveappbk6").offset().top-offtop; $(".serveappbk6 .serveappbk3_title").css("top",-topzhi*0.5); $(".serveappbk6 .serveappbk2_btn").css("top",-topzhi*0.3); $(".serveappbk6_list").css("top",-topzhi*0.2); $(".serveappbk6_ul li").each(function(index, element) { $(this).css({top:-(4-index)*topzhi*0.1}) }); }else{ $(".serveappbk6 .serveappbk3_title").css("top",0); $(".serveappbk6 .serveappbk2_btn").css("top",0); $(".serveappbk6_list").css("top",0); $(".serveappbk6_ul li").css("top",0); } } /////////////案例版块//////////// function casebankr(offtop){ if($(".serveapppadditp").length>0 && $(window).width()>1000){ var topzhi=$(".serveapppadditp").parents(".bankscroll").offset().top-offtop; $(".serveapppadditp .serveappbk3_title").css("top",-topzhi*2); $(".serveapppadditp .serveappbk2_btn").css("top",-topzhi*1.5) $(".serveapppadditp .dtiasnv ").css("top",-topzhi*0.1) //$(".serveappbk5_ul").css("top",-topzhi*0.5); }else{ $(".serveapppadditp .serveappbk3_title").css("top",0); $(".serveapppadditp .serveappbk2_btn").css("top",0) $(".serveapppadditp .dtiasnv ").css("top",0) //$(".serveappbk5_ul").css("top",0); } } ///////更深的了解我们////// function understandim(offtop){ if($(".liaojie_list").length>0 && $(window).width()>1000){ var topzhi=$(".index_liaojie").offset().top-offtop; $(".index_liaojie .liaojie_tilte").css("top",-(topzhi*0.7-80)); $(".index_liaojie .serveappbk2_btn").css("top",-topzhi*0.9) $(".liaojie_list ul li").each(function(index, element) { $(this).css("top",-(index*0.5*topzhi+topzhi*0.02)); }); }else{ $(".index_liaojie .liaojie_tilte").css("top",0); $(".index_liaojie .serveappbk2_btn").css("top",0) $(".liaojie_list ul li").css("top",0); } } ///////////我们的观点////////// function ourpoinths(offtop){ if($(".ourpoint").length>0 && $(window).width()>1000){ var topzhi=$(".ourpoint ").offset().top-offtop; $(".ourpoint .ourpoint_tilet img").css("top",-topzhi*0.5); $(".ourpoint .serveappbk2_btn").css("top",-topzhi*0.3); $(".ourpoint .dtiasul").css("top",-topzhi*0.2); }else{ $(".ourpoint .ourpoint_tilet img").css("top",0); $(".ourpoint .serveappbk2_btn").css("top",0); $(".ourpoint .dtiasul").css("top",0); } } //////////联系我们//////////// function contactushs(offtop){ if($(".contactsy").length>0 && $(window).width()>1000){ var topzhi=$(".contactsy ").offset().top-offtop; $(".contactsy .contactsy_tilte").css("top",-topzhi*0.7); $(".contactsy .serveappbk2_btn").css("top",-topzhi*0.5); $(".contactsy .contactsy_nrl").css("top",-topzhi*0.4); $(".contactsy .contactsy_nrr").css("top",-topzhi*0.4); }else{ $(".contactsy .contactsy_tilte").css("top",0); $(".contactsy .serveappbk2_btn").css("top",0); $(".contactsy .contactsy_nrl").css("top",0); $(".contactsy .contactsy_nrr").css("top",0); } } $(window).scroll(function(){ var windhsoueght=$(".bankscroll").height(); $(".backimgsclassa,.backimgsclassb,.backimgsclassc,.backimgsclassd").each(function(index, element) { $(this).css({top:math.max($(this).parents(".bankscroll").offset().top-$(window).scrolltop()-windhsoueght,-windhsoueght)/10}); }); }) /////////返回顶部//////// $(".posfixnavr a:last").click(function(){ $("html,body").animate({scrolltop:0},500,"easeinoutcubic"); bankscroll_index=0; }) });