var formsbstatus = -1; var layerindex = -1; //鍏冲北瑙変腑 tokena:瑙丳c-mobile.js鐨勫弬鏁拌鏄? tokenb:鍛煎敜navmodal灞傜殑寤舵椂display=none) tokenc:hcontrolbar(椤圭洰鐨勬暟瀛楃爜鐨勪笂涓嬬炕杞?,瑙両ndexopt鐨凮pttype=swiperopt var paraglobe = {'tokena':-1, 'tokenb':-1, 'tokenc':-1, 'clearbox':-1, 'skipcookie':false}; var cpgpara = {usewow: false, 'cindex':-1} var newimgobjb; //鐢ㄤ簬棣栭〉banner鐨勫浘鐗囬杞藉叆(鍖椾含姘告椇) function imgpreloada(){ //瀹屾垚鍖椾含姘告椇banner鐨勫姩鎬佽浇鍏?鎸夋椂闂磋浇鍏?瑙e喅澶у浘鐗囪浇鍏ュ悗鍐嶈繘琛屾粦鍏? var str, str1, tmp, obj, currloadindex, htms, valid; currloadindex = -1; htms = ''; indexa = slidepara.length; valid = -1; for(var i=0;i0){ tmp = ''; for(var ii=6;ii'; } } htms = htms+'
'; if(tmp!='') htms = htms+'
'+tmp+'
'; htms = htms+'
'; swiperh.appendslide(htms); swiperh.autoplay.stop(); window.settimeout('swiperh.autoplay.start();', 1000); } slidepara[i][2] = 3; break; } } if(indexa=str1) valid = 1; } } if(valid){ slidepara[i][2] = 1; newimgobjb = new image(); newimgobjb.src = slidepara[i][5]; newimgobjb.onload = function(){ if((document.body.addeventlistener&&this.complete)||(!document.body.addeventlistener&&this.readystate=='complete')){ for(var ii=0;ii=str1) valid = 1; } } if(valid==0){ swiperh.removeslide(i); }else{ if(indexa==-1) indexa = i; } } if(indexa!=-1) hscreenslide(2, indexa); } /************************************************** 鍑芥暟鍚? hscreenslide 浣? 鐢? 棣栭〉鐨勬í灞忔粴鍔?娉ㄦ剰,鐩墠姝ゅ嚱鏁颁娇鐢–ss鍔ㄧ敾 娉ㄦ剰璁剧疆index.htm涓殑 slideanimatepara 鍙傛暟 鑼冧緥 img:鍖椾含姘告椇 鐩墠宸蹭慨鏀逛负鍔ㄦ€佽浇鍏?鎸夋椂闂存樉绀? 鍙? 鏁? types: 0:婊氬姩鍙崇щ 1:婊氬姩宸︾щ 2: **************************************************/ function hscreenslide(types, slideindex){ if(typeof swiperh=='undefined'){ if(types==2) slideindex = 1; else return; } //return; var str, tmp, movieobj, scurrindex, snextindex, slidedivtoken, slidedivobj, _width, _height, _obj1, _obj2, _obj3, _obja, showobjtype; _obj1 = null; _obj2 = null; _obj3 = null; slidedivobj = $('#swipera').children().eq(0).children('.swiper-slide'); //鍥犱负瑕侀槻姝㈤椤垫湁澶氫釜swiper,鍥犳浣跨敤id slidedivtoken = '.swiper-slide'; if(types==1||types==0){ if(types==1){ //婊氬姩宸︾щ if(swiperh.isend) str = slidedivobj.length-1; else str = swiperh.activeindex; }else{ //婊氬姩鍙崇щ 2 0 1 if(swiperh.isbeginning) str = 0; else str = swiperh.activeindex; } movieobj = slidedivobj.eq(str).eq(0); snextindex = slidedivobj.eq(str).attr('id'); snextindex = parseint(snextindex.substr(snextindex.length-1)); if(typeof slidepara!='undefined') showobjtype = slidepara[snextindex][0]; else showobjtype = slideanimatepara[snextindex]; //console.log('snextindex:'+snextindex+' movieobjindex:'+str+' activeindex:'+swiperh.activeindex) if(showobjtype=='img'){ // _obja = movieobj.find('li').eq(0).find('h3'); if(_obja.length>0){ _obj1 = _obja.eq(0).find('img').eq(0); _obj2 = _obja.eq(1).find('img').eq(0); _obj3 = _obja.eq(2).find('img').eq(0); } } if(_obj1!=null) _obj1.removeclass('slidedani_'+snextindex+'0'); if(_obj2!=null) _obj2.removeclass('slidedani_'+snextindex+'1'); if(_obj3!=null) _obj3.removeclass('slidedani_'+snextindex+'2'); } if(types==2){ scurrindex = slidedivobj.eq(slideindex).attr('id'); scurrindex = parseint(scurrindex.substr(scurrindex.length-1)); if(typeof slidepara!='undefined') showobjtype = slidepara[scurrindex][0]; else showobjtype = slideanimatepara[scurrindex]; //console.log(types+' | '+scurrindex+' | '+slideindex) movieobj = slidedivobj.eq(slideindex).eq(0); if(showobjtype=='img'){ _obja = movieobj.find('li').eq(0).find('h3'); if(_obja.length>0){ _obj1 = _obja.eq(0).find('img').eq(0); _obj2 = _obja.eq(1).find('img').eq(0); _obj3 = _obja.eq(2).find('img').eq(0); } } if(_obj1!=null) _obj1.addclass('slidedani_'+scurrindex+'0'); if(_obj2!=null) _obj2.addclass('slidedani_'+scurrindex+'1'); if(_obj3!=null) _obj3.addclass('slidedani_'+scurrindex+'2'); } } function inits(){ var str, str1, str2, tmp, tmp1, obj, arr1, arr2; if(comepage=='index'){ } } var newimgobj; function preloadimg(types){ var str, tmp, obj; if(types==0){ if(imglist[1][imglist[0]]==''){ imglist[2][imglist[0]] = true; imglist[0] = imglist[0]+1; preloadimg(0); return; } newimgobj = new image(); newimgobj.src = imglist[1][imglist[0]]; newimgobj.onload = function(){ imgloadopt('load', newimgobj, 'preloadimg|1', ''); } } if(types==1){ if(imglist[0]<3){ obj = document.getelementbyid('slide0_'+imglist[0]); }else{ obj = document.getelementbyid('slide'+(imglist[0]-3+1)); } if(obj!=null){ obj.style.backgroundimage = 'url('+imglist[1][imglist[0]]+')'; if(imglist[0]==0) obj.style.display = ''; } imglist[2][imglist[0]] = true; imglist[0] = imglist[0]+1; if(imglist[0]0:settiemout鐨勫彞鏌? function imgmovie(types, slideindex){ if(typeof myswiper=='undefined'){ if(types==2) slideindex = 1; else return; } var str, tmp, obj1, obj2, obj3, movieobj, currindex; if(types==1||types==0){ if(types==1){ //婊氬姩宸︾щ if(myswiper.isend) str = $('.swiper-slide').length-1; else str = myswiper.activeindex; }else{ //婊氬姩鍙崇щ if(myswiper.isbeginning) str = 0; else str = myswiper.activeindex; } movieobj = $('.swiper-slide').eq(str); nextindex = $('.swiper-slide').eq(str).attr('id'); if(typeof nextindex=='undefined') return; nextindex = parseint(nextindex.substr(nextindex.length-1)); //console.log('nextindex:'+nextindex+' movieobjindex:'+str+' activeindex:'+myswiper.activeindex) if(nextindex!=0){ if(intervaltoken[0]!=0){ intervaltoken[0] = 0; if(intervaltoken[1]>0){ window.cleartimeout(intervaltoken[1]); intervaltoken[1] = -1; } } } if(nextindex==0){ obj = movieobj.find('dd').eq(0); obj1 = movieobj.find('blockquote').find('a').eq(0); obj2 = movieobj.find('blockquote').find('a').eq(1); obj.find('img').css({'opacity':0}); obj.find('h3').css({'opacity':0}); obj1.find('tt').css({'opacity':0}); obj1.find('span').css({'opacity':0}); obj2.find('tt').css({'opacity':0}); obj2.find('span').css({'opacity':0}); }else if(nextindex==1){ obj = movieobj.find('dl'); obj.eq(0).find('dt').eq(0).find('img').eq(0).css({'opacity':0}); obj.eq(1).find('dt').eq(0).find('img').eq(0).css({'opacity':0}); }else if(nextindex==2){ obj = movieobj.find('h3'); obj.eq(0).find('img').css({'opacity':0}); obj.eq(1).find('img').css({'opacity':0}); obj.eq(2).find('img').css({'opacity':0}); }else if(nextindex==3){ obj = movieobj.find('h3'); obj.eq(0).find('img').css({'opacity':0}); obj.eq(1).find('img').css({'opacity':0}); obj.eq(2).find('img').css({'opacity':0}); } } if(types==2){ currindex = $('.swiper-slide').eq(slideindex).attr('id'); currindex = parseint(currindex.substr(currindex.length-1)); //console.log(types+' | '+currindex+' | '+slideindex) if(currindex==0){ obj = $('.swiper-slide').eq(slideindex).find('dd').eq(0); obj.find('img').css({'left':20}); obj.find('h3').css({'top':10}); obj.find('img').stop().animate({'left':0, 'opacity':1}, {'duration':600, 'easing':'easeoutsine'}) obj.find('h3').stop().delay(800).animate({'top':0, 'opacity':1}, {'duration':800}) } if(currindex==1){ movieobj = $('.swiper-slide').eq(slideindex).find('dl'); movieobj.eq(0).find('dt').eq(0).find('img').eq(0).css({'top':20}); movieobj.eq(0).find('dt').eq(0).find('img').eq(0).stop().delay(0).animate({'top':0, 'opacity':1},{'duration':800}); movieobj.eq(1).find('dt').eq(0).find('img').eq(0).stop().delay(800).animate({'opacity':1},{'duration':800}); } if(currindex==2){ obj = $('.swiper-slide').eq(slideindex).find('h3'); obj.eq(0).find('img').css({'left':-20}); obj.eq(1).find('img').css({'top':20}); obj.eq(0).find('img').stop().animate({'left':0, 'opacity':1}, {'duration':800, 'easing':'easeoutbounce'}); obj.eq(1).find('img').stop().delay(800).animate({'top':0, 'opacity':1},{'duration':800, 'easing':'easeoutsine'}); obj.eq(2).find('img').stop().delay(1600).animate({'opacity':1},{'duration':800}); } if(currindex==3){ movieobj = $('.swiper-slide').eq(slideindex).find('h3'); obj1 = movieobj.eq(0).find('img'); var _width = obj1.eq(0).width(); var _height = obj1.eq(0).height(); obj1.eq(0).css({'width':_width*1.3, 'height':_height*1.3, 'top':-1*_height*0.3/2, 'left':-1*_width*0.3/2}); movieobj.eq(2).find('img').eq(0).css({'top':-20}); obj1.eq(0).stop().animate({'left':0, 'top':0, 'width':_width, 'height':_height, 'opacity':1},{'duration':800, 'easing':'easeoutbounce'}); movieobj.eq(2).find('img').eq(0).stop().delay(800).animate({'top':0, 'opacity':1},{'duration':800}); movieobj.eq(1).find('img').eq(0).stop().delay(1800).animate({'opacity':1},{'duration':1000}); } } } /************************************************** 鍑芥暟鍚? webpageopt 浣? 鐢? 澶勭悊棣栭〉,鍐呴〉鐨勭浉鍏虫搷浣? 杩斿洖鍊? 鏃犺繑鍥炲€? **************************************************/ function webpageopt(types, paras){ var str, tmp, obj, obj1, obj2; if(types==0){ //瀵瑰簲mouseover myswiper.autoplay.stop(); if(intervaltoken[0]==-1||intervaltoken[0]==-2){ if(intervaltoken[1]!=-1) window.cleartimeout(intervaltoken[1]); intervaltoken[0] = 1+paras; intervaltoken[1] = window.settimeout('webpageopt(0, '+paras+')', intervaltoken[2]); return; }else if(intervaltoken[0]==1||intervaltoken[0]==2){ intervaltoken[0] = 3+paras; intervaltoken[1] = -1; }else{ intervaltoken[0] = 1+paras; intervaltoken[1] = window.settimeout('webpageopt(0, '+paras+')', intervaltoken[2]); return; } } if(types==1){ //瀵瑰簲mouseout if(intervaltoken[0]==1||intervaltoken[0]==2){ if(intervaltoken[1]!=-1) window.cleartimeout(intervaltoken[1]); intervaltoken[0] = -1; intervaltoken[1] = -1 return; }else if(intervaltoken[0]==3||intervaltoken[0]==4){ intervaltoken[0] = -1-paras; intervaltoken[1] = window.settimeout('webpageopt(1, '+paras+')', intervaltoken[2]); return; }else{ intervaltoken[0] = -1; intervaltoken[1] = -1; } } if(types==0||types==1){ //console.log('杩涘満鎴栧嚭鍦?0鎴?):'+types+' 宸﹀浘鎴栧彸鍥?0鎴?):'+paras+' intervaltoken[1]'+intervaltoken[1]) obj = $('#slide0'); obj1 = obj.find('a').eq(0); obj2 = obj.find('a').eq(1); if(types==0){ //mouseover if(!intervaltoken[3]){ obj.find('center').eq(0).css({'opacity':1}); obj.find('center').eq(1).css({'opacity':1}); obj.find('dd').eq(0).find('img').eq(0).css({'opacity':1, 'left':0}); obj.find('dd').eq(0).find('h3').eq(0).css({'opacity':1, 'top':0}); obj1.find('tt').eq(0).css({'opacity':0, 'right':90}); obj1.find('span').eq(0).css({'opacity':0}); obj2.find('tt').eq(0).css({'opacity':0, 'left':90}); obj2.find('span').eq(0).css({'opacity':0}); } str = 0; if(!intervaltoken[3]){ obj.find('dd').eq(0).find('img').eq(0).stop().animate({'opacity':0, 'top':-10}, {'duration':400, 'easing':'easeoutsine'}); obj.find('dd').eq(0).find('h3').eq(0).stop().animate({'opacity':0, 'top':10}, {'duration':400, 'easing':'easeoutsine'}); obj.find('center').eq(paras).stop().delay(400).animate({'opacity':0.5}, {'duration':400, complete:function(){ intervaltoken[3] = true; } }); str = 800; }else{ str = 400; if(paras==0){ obj.find('a').eq(1).find('tt').stop().animate({'left':90, 'opacity':0}, {'duration':300}); obj.find('a').eq(1).find('span').stop().animate({'opacity':0}, {'duration':300}); obj.find('center').eq(1).stop().delay(200).animate({'opacity':1}, {'duration':400}) }else{ obj.find('a').eq(0).find('tt').stop().animate({'right':90, 'opacity':0}, {'duration':300}); obj.find('a').eq(0).find('span').stop().animate({'opacity':0}, {'duration':300}); obj.find('center').eq(0).stop().delay(200).animate({'opacity':1}, {'duration':400}) } obj.find('center').eq(paras).stop().delay(400).animate({'opacity':0.5}, {'duration':400}) } if(paras==0){ obj1.find('tt').eq(0).stop().delay(str).animate({'right':70, 'opacity':1}, {'duration':600, 'easing':'easeoutsine'}); obj1.find('span').eq(0).stop().delay(str+400).animate({'opacity':1}, {'duration':600, 'easing':'easeoutsine'}); }else{ obj2.find('tt').eq(0).stop().delay(str).animate({'left':70, 'opacity':1}, {'duration':600, 'easing':'easeoutsine'}); obj2.find('span').eq(0).stop().delay(str+400).animate({'opacity':1}, {'duration':600, 'easing':'easeoutsine'}); } } if(types==1){ if(paras==0){ str = 1; obj1 = obj.find('a').eq(0); obj1.find('tt').eq(0).stop().animate({'right':90, 'opacity':0}, {'duration':300, 'easing':'easeoutsine'}); obj1.find('span').eq(0).stop().animate({'opacity':0}, {'duration':300, 'easing':'easeoutsine'}); }else{ str = 0; obj1 = obj.find('a').eq(1); obj1.find('tt').eq(0).stop().animate({'left':90, 'opacity':0}, {'duration':300, 'easing':'easeoutsine'}); obj1.find('span').eq(0).stop().animate({'opacity':0}, {'duration':300, 'easing':'easeoutsine'}); } obj.find('center').eq(paras).stop().delay(400).delay(300).animate({'opacity':1}, {'duration':400, complete:function(){ intervaltoken[3] = false; } }); obj.find('dd').eq(0).find('img').eq(0).stop().delay(700).animate({'opacity':1, 'top':0}, {'duration':400, 'easing':'easeoutsine'}); obj.find('dd').eq(0).find('h3').eq(0).stop().delay(700).animate({'opacity':1, 'top':0}, {'duration':400, 'easing':'easeoutsine', complete:function(){ myswiper.autoplay.start(); } }); } } if(types==2){ tmp = paras.split(':'); tmp1 = tmp[0].split('-'); str = tmp1[0]+'骞?+tmp1[1]+'鏈?+tmp1[2]+'鏃?'+tmp[1]; if(tmp[2]!='') str = str+''+tmp[2]+''; if(tmp[3]!='') str = str+''+tmp[3]+''; document.getelementbyid('currdate').innerhtml = str; var today = new date(tmp1[0]+'-'+tmp1[1]+'-'+tmp1[2]); calendar_year = today.getfullyear(); calendar_month = today.getmonth() + 1; generatecalendar(calendar_year, calendar_month); //document.getelementbyid('calendar_pc_year').innerhtml = tmp1[0]+'骞?span id="calendar_pc_month">'+tmp1[1]+'鏈?; } } /************************************************** 鍑芥暟鍚? indexopt 浣? 鐢? 涓庨椤电浉鍏崇殑js, 鍙? 鏁? types: 0:婊氬姩鍙崇щ 1:婊氬姩宸︾щ 2: **************************************************/ function indexopt(opttypes, optobj, paras){ var str, tmp, tmp1, obj, obj1, obj2, obj3, otpobj, valid, htms, arr1, animcss; if(opttypes=='test'){ //涓昏鐢ㄤ簬娴嬭瘯, paras鍚箟: 0:绌?濡傛灉optobj涓簄ull,姝や负瀵瑰簲鐨処d 1:杩涘満杩樻槸鍑哄満(0:杩涘満 1:鍑哄満) 2:缂栧彿鏂瑰紡(1:寮€灞忔柟寮? 3:涓€绾х紪鍙? 4:浜岀骇缂栧彿 if(optobj==null) optobj = $('#'+paras[0]); //鍏冲北瑙? slide1: ['1',0,1,0,1] slide2: ['2',0,0,0,1] if(paras[2]==0){ obj = optobj.eq(paras[3]+1).find('dt').eq(0).find('span').eq(0); obj1 = optobj.eq(paras[4]+1).find('dt').eq(0).find('tt').eq(0); }else if(paras[2]==1){ obj = optobj.eq(1).find('dt').eq(0).find('h6').eq(paras[3]).find('span').eq(0); obj1 = optobj.eq(1).find('dt').eq(0).find('h6').eq(paras[4]).find('span').eq(0); } //console.log(obj1.html()) if(paras[1]==0){ obj.addclass('slidedani_'+paras[0]+'0'); obj1.addclass('slidedani_'+paras[0]+'1'); } if(paras[1]==1){ obj.removeclass('slidedani_'+paras[0]+'0'); obj1.removeclass('slidedani_'+paras[0]+'1'); } if(paras[1]==10){ obj = $('.hcontrolbar').eq(0).find('h3').eq(1).find('span').eq(0).find('tt').eq(0); obj.css({'animation-name':'arrowani_2'}); obj.css({'animation-duration':'1s'}); obj.css({'animation-timing-function':'linear'}); obj.css({'animation-delay':'0s'}); obj.css({'animation-delay':'0s'}); obj.css({'animation-iteration-count':'1'}); obj.css({'animation-direction':'normal'}); obj.css({'animation-fill-mode':'forwards'}); } } if(opttypes=='navmodal'){ //鍏冲北瑙夌殑modal杩涘満涓庡嚭鍦哄姩鐢? if(paras==0){ if(paraglobe.tokena!=0) return; $('#topnavb').css({'display':'block'}); $('#topnavb').removeclass('topbar_ain4').addclass('topbar_ain3'); optobj = $('#topnavb').find('dt'); obj = optobj.eq(0).find('blockquote').eq(0).find('dl'); for(var i=0;i