array(131) { [0]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/_shownews.aspx3333id=79.txt" [1]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/about.aspx3333tid=1.txt" [2]=> string(60) "/www/wwwroot/web/cache/ying-xun.com/about2.aspx3333id=19.txt" [3]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/about2.aspx3333id=4.txt" [4]=> string(61) "/www/wwwroot/web/cache/ying-xun.com/aboutus.aspx3333tid=1.txt" [5]=> string(61) "/www/wwwroot/web/cache/ying-xun.com/aboutus.aspx3333tid=2.txt" [6]=> string(61) "/www/wwwroot/web/cache/ying-xun.com/aboutus.aspx3333tid=3.txt" [7]=> string(48) "/www/wwwroot/web/cache/ying-xun.com/adv.aspx.txt" [8]=> string(52) "/www/wwwroot/web/cache/ying-xun.com/alibaba.aspx.txt" [9]=> string(49) "/www/wwwroot/web/cache/ying-xun.com/case.aspx.txt" [10]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/case.aspx3333page=1.txt" [11]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/case.aspx3333page=2.txt" [12]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/case.aspx3333page=3.txt" [13]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/case.aspx3333page=4.txt" [14]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/case.aspx3333page=5.txt" [15]=> string(52) "/www/wwwroot/web/cache/ying-xun.com/contact.aspx.txt" [16]=> string(60) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com.txt" [17]=> string(68) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_11.html.txt" [18]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333351.html.txt" [19]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333354.html.txt" [20]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333355.html.txt" [21]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333356.html.txt" [22]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333357.html.txt" [23]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333358.html.txt" [24]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333372.html.txt" [25]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333373.html.txt" [26]=> string(78) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_about_333374.html.txt" [27]=> string(81) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_content_3333137.html.txt" [28]=> string(81) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_content_3333138.html.txt" [29]=> string(81) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_content_3333139.html.txt" [30]=> string(81) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_content_3333140.html.txt" [31]=> string(81) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_content_3333141.html.txt" [32]=> string(81) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_content_3333142.html.txt" [33]=> string(81) "/www/wwwroot/web/cache/ying-xun.com/http1111_ledlhjc.com_content_3333143.html.txt" [34]=> string(46) "/www/wwwroot/web/cache/ying-xun.com/images.txt" [35]=> string(50) "/www/wwwroot/web/cache/ying-xun.com/index.aspx.txt" [36]=> string(45) "/www/wwwroot/web/cache/ying-xun.com/index.txt" [37]=> string(49) "/www/wwwroot/web/cache/ying-xun.com/jss_js.js.txt" [38]=> string(51) "/www/wwwroot/web/cache/ying-xun.com/ledlhjc.com.txt" [39]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/ledlhjc.com_11.html.txt" [40]=> string(69) "/www/wwwroot/web/cache/ying-xun.com/ledlhjc.com_about_333351.html.txt" [41]=> string(69) "/www/wwwroot/web/cache/ying-xun.com/ledlhjc.com_about_333354.html.txt" [42]=> string(69) "/www/wwwroot/web/cache/ying-xun.com/ledlhjc.com_about_333355.html.txt" [43]=> string(57) "/www/wwwroot/web/cache/ying-xun.com/mobile_index.aspx.txt" [44]=> string(52) "/www/wwwroot/web/cache/ying-xun.com/network.aspx.txt" [45]=> string(58) "/www/wwwroot/web/cache/ying-xun.com/news.aspx3333tid=1.txt" [46]=> string(58) "/www/wwwroot/web/cache/ying-xun.com/news.aspx3333tid=2.txt" [47]=> string(58) "/www/wwwroot/web/cache/ying-xun.com/news.aspx3333tid=3.txt" [48]=> string(48) "/www/wwwroot/web/cache/ying-xun.com/pay.aspx.txt" [49]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/problb.aspx3333id=1.txt" [50]=> string(69) "/www/wwwroot/web/cache/ying-xun.com/problb.aspx3333id=16666page=2.txt" [51]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/problb.aspx3333id=2.txt" [52]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/problb.aspx3333id=3.txt" [53]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/problb.aspx3333id=7.txt" [54]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/problb.aspx3333id=8.txt" [55]=> string(59) "/www/wwwroot/web/cache/ying-xun.com/problb.aspx3333id=9.txt" [56]=> string(61) "/www/wwwroot/web/cache/ying-xun.com/service.aspx3333tid=1.txt" [57]=> string(61) "/www/wwwroot/web/cache/ying-xun.com/service.aspx3333tid=5.txt" [58]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=10.txt" [59]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=108.txt" [60]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=11.txt" [61]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=12.txt" [62]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=120.txt" [63]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=13.txt" [64]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=136.txt" [65]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=15.txt" [66]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=152.txt" [67]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=16.txt" [68]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=162.txt" [69]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=163.txt" [70]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=164.txt" [71]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=165.txt" [72]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=166.txt" [73]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=168.txt" [74]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=169.txt" [75]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=170.txt" [76]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=172.txt" [77]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=173.txt" [78]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=174.txt" [79]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=175.txt" [80]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=18.txt" [81]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=186.txt" [82]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=187.txt" [83]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=20.txt" [84]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=209.txt" [85]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=22.txt" [86]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=229.txt" [87]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=236.txt" [88]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=24.txt" [89]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=244.txt" [90]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=246.txt" [91]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=25.txt" [92]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=251.txt" [93]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=253.txt" [94]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=255.txt" [95]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=256.txt" [96]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=257.txt" [97]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=259.txt" [98]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=260.txt" [99]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=261.txt" [100]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=262.txt" [101]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=265.txt" [102]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=267.txt" [103]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=274.txt" [104]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=275.txt" [105]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=277.txt" [106]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=279.txt" [107]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=284.txt" [108]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=288.txt" [109]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=299.txt" [110]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=300.txt" [111]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=301.txt" [112]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=302.txt" [113]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=304.txt" [114]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=306.txt" [115]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=307.txt" [116]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=308.txt" [117]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=309.txt" [118]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=310.txt" [119]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=314.txt" [120]=> string(63) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=315.txt" [121]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=48.txt" [122]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=53.txt" [123]=> string(61) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=7.txt" [124]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=79.txt" [125]=> string(61) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=8.txt" [126]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=86.txt" [127]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=87.txt" [128]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=88.txt" [129]=> string(62) "/www/wwwroot/web/cache/ying-xun.com/shownews.aspx3333id=90.txt" [130]=> string(52) "/www/wwwroot/web/cache/ying-xun.com/website.aspx.txt" } var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var crollNow = 0; var iTime; var followScroll = 1; var stop = 0; var ifbottom = 0; var rocketTimer; var pingback; var ifPlayed = Array(0,0,0,0,0,0,0); var windowobject; var windowHeight; var SmoothScroll = function (win, opt) { /操作对象 this.win = win; this.timeStamp = new Date().getTime(); /每次滚动位移 this.step = opt ? opt.step || 400 : 400; /缓动系数 this.f = opt ? opt.f || 0.06 : 0.06; this.interval = 10; this.intervalID = null; this.isFF = navigator.userAgent.toLowerCase().indexOf("firefox")>=0; this.upOrDown = ""; this.init(); } var i=0; SmoothScroll.prototype = { init: function () { var _this = this; if (_this.isFF) { _this.win.addEventListener('DOMMouseScroll', function (e) { _this.upOrDown = e.detail < 0 ? "up" : "down"; _this.scrollHander(); if (e.preventDefault) /disable default wheel action of scrolling page e.preventDefault(); else return false; }, false); } else { _this.win.onmousewheel = function (e) { e = e || window.event; _this.upOrDown = e.wheelDelta > 0 ? "up" : "down"; _this.scrollHander(); if (e.preventDefault) /disable default wheel action of scrolling page e.preventDefault(); else return false; } } } , scrollHander: function () { clearTimeDown(); var _this = this; var _step=_this.step * (_this.upOrDown == "up" ? -1 : 1); var tar = $(window).scrollTop()+ _step; if(tar<$("body").height()-10){ if(!$(windowobject).is(":animated")){/避免多次滚轮造成的多次滚动 $(windowobject).animate({"scrollTop":"+="+ _step+"px"},600,function(){ if(_this.upOrDown == "up"){/代表转轮往上,文本内容其实是往下 crash_bottom(1,$(window).scrollTop(),20,150); } else{ crash(0,$(window).scrollTop(),20,150); } }); / if($(window).scrollTop()<=_this.step && _this.upOrDown=='up'){ / } else{ $("#guider").animate({"top":tar+(_this.step-$("#guider").height())/2},800,function(){ /var index=Math.floor($("#guider").offset().top/windowHeight); var index=Math.round(tar/windowHeight); if(index!=0){ $(".guider_link").removeClass("select"); $(".guider_link").eq(index).addClass("select"); } }); } } } } } /搭建js与flash互通的环境 function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName]; } } function callExternal(ele_id) { if(ele_id=="swftop"){ var timer = setInterval(function(){ if(thisMovie(ele_id).PercentLoaded()==100){ clearInterval(timer); thisMovie(ele_id).startPlay(); } },100); }else{ var index= parseInt(ele_id.replace("swf",""))-1; if(ifPlayed[index]==0){ var timer = setInterval(function(){ if(thisMovie(ele_id).PercentLoaded()==100){ clearInterval(timer); thisMovie(ele_id).startPlay(); ifPlayed[index] = 1; } },100); } } } function go(){ location.href = "https:/web.archive.org/web/20161106014117/http:/sucaijiayuan.com/"; } function backToTop(){ clearTimeDown(); $(windowobject).animate({"scrollTop":"0px"},2000,function(){ }); } function guider_click(index){ linkToPage(index); } function rocketHide(){ } function refresh(){ window.location.reload(); } function linkToPage(index){ if(!$(windowobject).is(":animated")){ pingback.getPv(index); index = parseInt(index); clearTimeDown(); if(index>0){ $(".guider_link").removeClass("select"); $(".guider_link").eq(index).addClass("select"); } if($(".stage").eq(index).offset().top>$("body").scrollTop()){ $(windowobject).animate({"scrollTop":$(".stage").eq(index).offset().top + "px"},1000,function(){ crash(0,$(".stage").eq(index).offset().top,20,150); }); }else{ $(windowobject).animate({"scrollTop":$(".stage").eq(index).offset().top +"px"},1000,function(){ crash_bottom(1,$(".stage").eq(index).offset().top,20,150); }); } if(index!==0){ var height = $(".stage").eq(index).offset().top +windowHeight/2-$("#guider").height()/2; $("#guider").animate({"top":height+20+"px"},1000); } } } function crash_bottom(direction,termin,distant,time){ if(!stop){ var scrollTop = $(window).scrollTop(); if(direction==1){ /向上 direction = 0; $(windowobject).animate({"scrollTop":"+="+distant+"px"},time,function(){ crash_bottom(direction,termin,distant*0.6,time); if(distant<=15||time>150){ stop=1;/代表开始停止碰撞 $(windowobject).animate({"scrollTop":termin+"px"},time,function(){ /为0代表碰撞结束 crollNow = termin; stop=0; setTimeout(function(){ setTimeDown(); },500); }); } }); }else if(direction == 0){ /向下 direction = 1; $(windowobject).animate({"scrollTop":termin+"px"},time,function(){ crash_bottom(direction,termin,distant*0.6,time); if(distant<=15||time>150){ stop=1; $(windowobject).animate({"scrollTop":termin+"px"},time,function(){ crollNow = termin; stop=0; setTimeout(function(){ setTimeDown(); },500); }); } }); } } } function crash(direction,termin,distant,time){ if(!stop){ var scrollTop = $(window).scrollTop(); if(direction==0){ /向下 direction = 1; $(windowobject).animate({"scrollTop":"-="+distant+"px"},time,function(){ crash(direction,termin,distant*0.6,time); if(distant<=15||time>150){ stop=1; $(windowobject).animate({"scrollTop":termin+"px"},time,function(){ crollNow = termin; stop=0; setTimeout(function(){ setTimeDown(); },100); }); } }); }else if(direction ==1){ /向上 direction = 0; $(windowobject).animate({"scrollTop":termin+"px"},time,function(){ crash(direction,termin,distant*0.6,time); if(distant<=15||time>150){ stop=1; $(windowobject).animate({"scrollTop":termin+"px"},time,function(){ crollNow = termin; stop=0; setTimeout(function(){ if(!ifbottom){ followScroll = 1; setTimeDown(); } },100); }); } }); } } } var timeDown; var intervalDown; var topwin=1; function setTimeDown(){ clearTimeDown(); timeDown = setTimeout(function(){ if(!$(windowobject).is(":animated")){ var index=Math.round($(window).scrollTop()/windowHeight)+1; if(index!=6){ $(windowobject).animate({"scrollTop":"+="+windowHeight+"px"},600,function(){ crash(0,$(window).scrollTop(),20,150); }); var tmpheight=index*windowHeight+(windowHeight-$("#guider").height())/2; $("#guider").animate({"top":tmpheight},800,function(){ var index=Math.floor($("#guider").offset().top/windowHeight); if(index!=0){ $(".guider_link").removeClass("select"); $(".guider_link").eq(index).addClass("select"); } }); } } },8000); } function clearTimeDown(){ clearTimeout(timeDown); } function signAnimate(){ var cicleFun=function(name1,name2,name3,shift,interval){ $(name1).animate({"bottom":"-="+shift+"px"},interval,function(){ $(name1).hide(); $(name2).animate({"bottom":"-="+shift+"px"},interval,function(){ $(name2).hide(); $(name3).animate({"bottom":"-="+shift+"px"},interval,function(){ $(name3).hide(); $(name1).css("bottom","+="+ shift*2+"px").show().animate({"bottom":"-="+shift+"px"},interval,function(){ $(name2).css("bottom","+="+shift*2+"px").show().animate({"bottom":"-="+shift+"px"},interval,function(){ $(name3).css("bottom","+="+shift*2+"px").show().animate({"bottom":"-="+shift+"px"},interval,function(){ setTimeout(function(){cicleFun(name1,name2,name3,shift,interval)},1500); }); }); }); }); }); }); } cicleFun("#sign1_1","#sign2_1","#sign3_1",30,200); cicleFun("#sign1_2","#sign2_2","#sign3_2",30,200); cicleFun("#sign1_plus","#sign2_plus","#sign3_plus",30,200); cicleFun("#sign1_3","#sign2_3","#sign3_3",30,200); cicleFun("#sign1_4","#sign2_4","#sign3_4",30,200); } $(document).ready(function(){ pingback = new PingbackApp(); pingback.getPv(0); setTimeDown(); callExternal("swf1"); var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1; if(is_chrome){ /判断是chrome、搜狗chrome内核, 供scrollTop兼容性使用 windowobject ="body"; }else{ /支持ie和ff windowobject ="html"; } $(".index_link").click(function(){ $(".guider_link").removeClass("select"); var index = parseInt($(this).attr("index")); $(".index_link").eq(index).addClass("select"); linkToPage(index); }); $(".guider_link").click(function(){ var index= $(this).index(); linkToPage(index); }); /当前窗口大小 windowHeight = document.documentElement.clientHeight; $(".stage").css("height",windowHeight); $(".stage_box").css("top",(windowHeight-580)/2+"px"); $("#guider").css("top",$("body").height()-windowHeight/2-$("#guider").height()/2); var opt = {step:windowHeight,f:1}; var div = document.body; new SmoothScroll(div,opt); /窗口大小变化时,触发每个屏幕大小变化 var resizeHandler=function(){ $("body").stop(true,true); /阻止碰撞 stop=1; clearTimeDown(); windowHeight = document.documentElement.clientHeight; $(".stage").css("height",windowHeight); $(".stage_box").css("top",(windowHeight-580)/2+"px"); $("#guider").css("top",$("body").height()-windowHeight/2-$("#guider").height()/2); var opt = {step:windowHeight,f:1}; var div = document.body; new SmoothScroll(div,opt); var index=Math.floor($(window).scrollTop()/windowHeight); $(windowobject).animate({"scrollTop":index*windowHeight+"px"}); if(index!=0){ var tmpheight=index*windowHeight+(windowHeight-$("#guider").height())/2; $("#guider").animate({"top":tmpheight},0,function(){ $(".guider_link").removeClass("select"); $(".guider_link").eq(index).addClass("select"); }); } /300毫秒后执行stop=0,目的是保证ie下crash函数(也是timer)执行完。 setTimeout(function(){ stop=0; },300); } $(window).resize(function(){ /bugfix ie内核只有在定时器触发这个函数才能正确执行 setTimeout(resizeHandler,10); }); /往下翻页的函数 signAnimate(); /浏览器图标的旋转动画 var rotateTimer; $("#guider_link1").hover( function(){ var angle = 0; clearInterval(rotateTimer); rotateTimer=setInterval(function(){ angle+=20; $("#logo").rotate(angle); },50); }, function(){ $("#logo").rotate(0); clearInterval(rotateTimer); } ); $(windowobject).animate({"scrollTop":"0px"}); /去掉鼠标中键的点击事件,否则由此产生的向上滚动和向下滚动将不受控制 function stopDefaultAndBubble(e) { e = e || window.event; / Stops the Default Browser Action if (e.preventDefault) { e.preventDefault(); } e.returnValue = false; /Stops the event bubbling up to the body element if (e.stopPropagation) { e.stopPropagation(); } e.cancelBubble = true; } $(document).bind('mousedown', function(e) { /mouse middle button if( (e.which == 2) ) { stopDefaultAndBubble(e); /bugfix 搜狗浏览器的ie内核只有在定时器触发这个函数才生效。。 setTimeout(function(){ stopDefaultAndBubble(e); },10); } }) }); function getCookie1(offset) { var endstr = document.cookie.indexOf (";", offset);if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function getCookie2(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookie1(j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function setCookie(name, value, exptime, domain){ var domain = domain ? domain : "ie.ying-xun.com"; var exp = new Date(); exp.setTime(exp.getTime() + exptime); document.cookie = name + "=" + value + ";path=/;expires=" + exp.toGMTString() + ";domain=" + domain + ";"; } var PingbackApp = function(){ var pingServerUrl = "https:/web.archive.org/web/20161106014117/http:/sucaijiayuan.com/"; var n = new Date().getTime(); var c = escape(n*1000+Math.round(Math.random()*1000)); this.getUid = function(){ var uid = ""; if(getCookie2("SMYUV") != null) { uid = getCookie2("SMYUV"); } else { uid = c; setCookie("SMYUV", uid, 2592000000, "ying-xun.com"); } return uid; } this.getYYID = function(){ var yyid = ""; if(getCookie2("YYID") != null) { yyid = getCookie2("YYID"); } else { yyid = ""; } return yyid; } this.refurl = document.referrer == ""? "" : encodeURIComponent(document.referrer); /pl(page location) this.pl = encodeURIComponent(window.location.href); var u = this.getUid(); this.getPv = function(index){ var pvImg =document.createElement('img'); pvImg.src = pingServerUrl + "pv.GIF?t="+c+"&u="+ u +"&r="+this.refurl+"&pl="+this.pl+"&page="+index; } this.refresh = function(){ var pvImg =document.createElement('img'); pvImg.src = pingServerUrl + "pv.GIF?t="+c+"&u="+ u +"&r="+this.refurl+"&pl="+this.pl+"&type=refresh"; } } /png透明处理 if (!window.XMLHttpRequest) { window.attachEvent("onload", enableAlphaImages); } function enableAlphaImages(){ for (var i=0; i