新浪科技_新浪网


新浪科技_新浪网 –>0)?i:0;return(D.length>e)?D[e].content:””}function aF(){var aJ=F.getElementsByName(“sudameta”);var aR=[];for(var aO=0;aOaJ){at(aa,D,3650);az=true}var i=0,aI=500;var aH=setInterval((function(){var e=t(aa);if(w){e=D}i+=1;if(i>3){clearInterval(aH)}if(e.length>aJ){clearInterval(aH);ar(aa,e)}}),aI);return w?D:t(aa)}}function U(e,aH,D){var i=e;if(i==null){return false}aH=aH||”click”;if((typeof D).toLowerCase()!=”function”){return}if(i.attachEvent){i.attachEvent(“on”+aH,D)}else{if(i.addEventListener){i.addEventListener(aH,D,false)}else{i[“on”+aH]=D}}return true}function af(){if(window.event!=null){return window.event}else{if(window.event){return window.event}var D=arguments.callee.caller;var i;var aH=0;while(D!=null&&aH<40){i=D.arguments[0];if(i&&(i.constructor==Event||i.constructor==MouseEvent||i.constructor==KeyboardEvent)){return i}aH++;D=D.caller}return i}}function g(i){i=i||af();if(!i.target){i.target=i.srcElement;i.pageX=i.x;i.pageY=i.y}if(typeof i.layerX=="undefined"){i.layerX=i.offsetX}if(typeof i.layerY=="undefined"){i.layerY=i.offsetY}return i}function aw(aH){if(typeof aH!=="string"){throw"trim need a string as parameter"}var e=aH.length;var D=0;var i=/(u3000|s|t|u00A0)/;while(DD){if(!i.test(aH.charAt(e-1))){break}e-=1}return aH.slice(D,e)}function c(e){return Object.prototype.toString.call(e)==="[object Array]"}function J(aH,aL){var aN=aw(aH).split("&");var aM={};var D=function(i){if(aL){try{return decodeURIComponent(i)}catch(aP){return i}}else{return i}};for(var aJ=0,aK=aN.length;aJ4);a4=((a3&15)>2);a1=((a0&3)<<6)|aZ;aS.push(a6);if(a0!=64&&a0!=-1){aS.push(a4)}if(aZ!=64&&aZ!=-1){aS.push(a1)}a6=a4=a1="";a5=a3=a0=aZ=""}while(aU-1)?”MSIE”:s.appName,aJ=s.appVersion;if(“MSIE”==i){e=”MSIE”;aI=aJ.indexOf(e);if(aI>=0){aK=window.parseInt(aJ.substring(aI+5));if(3<=aK){D=1.1;if(4=0){D=1.5}}}return D},network:function(){if(m&65536!=65536){return""}var i="";i=(s.connection&&s.connection.type)?s.connection.type:i;try{F.body.addBehavior("#default#clientCaps");i=F.body.connectionType}catch(D){i="unkown"}return i},language:function(){return(m&32768==32768)?(s.systemLanguage||s.language):""},timezone:function(){return(m&16384==16384)?(new Date().getTimezoneOffset()/60):""},flashVer:function(){if(m&8192!=8192){return""}var aK=s.plugins,aH,aL,aN;if(aK&&aK.length){for(var aJ in aK){aL=aK[aJ];if(aL.description==null){continue}if(aH!=null){break}aN=aL.description.toLowerCase();if(aN.indexOf("flash")!=-1){aH=aL.version?parseInt(aL.version):aN.match(/d+/);continue}}}else{if(window.ActiveXObject){for(var aI=10;aI>=2;aI–){try{var D=new ActiveXObject(“ShockwaveFlash.ShockwaveFlash.”+aI);if(D){aH=aI;break}}catch(aM){}}}else{if(W.indexOf(“webtv/2.5”)!=-1){aH=3}else{if(W.indexOf(“webtv”)!=-1){aH=2}}}}return aH},javaEnabled:function(){if(m&4096!=4096){return””}var D=s.plugins,i=s.javaEnabled(),aH,aI;if(i==true){return 1}if(D&&D.length){for(var e in D){aH=D[e];if(aH.description==null){continue}if(i!=null){break}aI=aH.description.toLowerCase();if(aI.indexOf(“java plug-in”)!=-1){i=parseInt(aH.version);continue}}}else{if(window.ActiveXObject){i=(new ActiveXObject(“JavaWebStart.IsInstalled”)!=null)}}return i?1:0}};var ad={pageId:function(i){var D=i||r,aK=”-9999-0-0-1″;if((undefined==D)||(“”==D)){try{var aH=h(“publishid”);if(“”!=aH){var aJ=aH.split(“,”);if(aJ.length>0){if(aJ.length>=3){aK=”-9999-0-“+aJ[1]+”-“+aJ[2]}D=aJ[0]}}else{D=”0″}}catch(aI){D=”0”}D=D+aK}return D},sessionCount:function(){var e=t(“_s_upa”);if(e==””){e=0}return e},excuteCount:function(){return SUDA.sudaCount},referrer:function(){if(m&2048!=2048){return””}var e=/^[^?&#]*.swf([?#])?/;if((aA==””)||(aA.match(e))){var i=V(j,”ref”,”&”,””);if(i!=””){return escape(i)}}return escape(aA)},isHomepage:function(){if(m&1024!=1024){return””}var D=””;try{F.body.addBehavior(“#default#homePage”);D=F.body.isHomePage(j)?”Y”:”N”}catch(i){D=”unkown”}return D},PGLS:function(){return(m&512==512)?h(“stencil”):””},ZT:function(){if(m&256!=256){return””}var e=h(“subjectid”);e.replace(“,”,”.”);e.replace(“;”,”,”);return escape(e)},mediaType:function(){return(m&128==128)?h(“mediaid”):””},domCount:function(){return(m&64==64)?F.getElementsByTagName(“*”).length:””},iframeCount:function(){return(m&32==32)?F.getElementsByTagName(“iframe”).length:””}};var av={visitorId:function(){var i=15;var e=t(aa);if(e.length>i&&u==0){return e}else{return}},fvisitorId:function(e){if(!e){var e=t(Y);return e}else{at(Y,e,3650)}},sessionId:function(){var e=t(H);if(“”==e){var i=new Date();e=Math.random()*10000000000000+”.”+i.getTime()}return e},flashCookie:function(e){if(e){}else{return p}},lastVisit:function(){var D=t(H);var aI=t(P);var aH=aI.split(“:”);var aJ=””,i;if(aH.length>=6){if(D!=aH[4]){i=new Date();var e=new Date(window.parseInt(aH[0]));aH[1]=window.parseInt(aH[1])+1;if(i.getMonth()!=e.getMonth()){aH[2]=1}else{aH[2]=window.parseInt(aH[2])+1}if(((i.getTime()-e.getTime())/86400000)>=7){aH[3]=1}else{if(i.getDay()=2){return i[0]}else{return””}},advCount:function(){return(m&2==2)?t(E):””},setUOR:function(){var aL=t(aE),aP=””,i=””,aO=””,aI=””,aM=j.toLowerCase(),D=F.referrer.toLowerCase();var aQ=/[&|?]c=spr(_[A-Za-z0-9]{1,}){3,}/;var aK=new Date();if(aM.match(aQ)){aO=aM.match(aQ)[0]}else{if(D.match(aQ)){aO=D.match(aQ)[0]}}if(aO!=””){aO=aO.substr(3)+”:”+aK.getTime()}if(aL==””){if(t(P)==””){aP=ak(D);i=ak(aM)}at(aE,aP+”,”+i+”,”+aO,365)}else{var aJ=0,aN=aL.split(“,”);if(aN.length>=1){aP=aN[0]}if(aN.length>=2){i=aN[1]}if(aN.length>=3){aI=aN[2]}if(aO!=””){aJ=1}else{var aH=aI.split(“:”);if(aH.length>=2){var e=new Date(window.parseInt(aH[1]));if(e.getTime()<(aK.getTime()-86400000*30)){aJ=1}}}if(aJ){at(aE,aP+","+i+","+aO,365)}}},setAEC:function(e){if(""==e){return}var i=t(E);if(i.indexOf(e+",")<0){i=i+e+","}at(E,i,7)},ssoInfo:function(){var D=unescape(aj(t("sso_info")));if(D!=""){if(D.indexOf("uid=")!=-1){var i=V(D,"uid","&","");return escape("uid:"+i)}else{var e=V(D,"u","&","");return escape("u:"+unescape(e))}}else{return""}},subp:function(){return t("SUBP")}};var ai={CI:function(){var e=["sz:"+ap.screenSize(),"dp:"+ap.colorDepth(),"ac:"+ap.appCode(),"an:"+ap.appName(),"cpu:"+ap.cpu(),"pf:"+ap.platform(),"jv:"+ap.jsVer(),"ct:"+ap.network(),"lg:"+ap.language(),"tz:"+ap.timezone(),"fv:"+ap.flashVer(),"ja:"+ap.javaEnabled()];return"CI="+e.join("|")},PI:function(e){var i=["pid:"+ad.pageId(e),"st:"+ad.sessionCount(),"et:"+ad.excuteCount(),"ref:"+ad.referrer(),"hp:"+ad.isHomepage(),"PGLS:"+ad.PGLS(),"ZT:"+ad.ZT(),"MT:"+ad.mediaType(),"keys:","dom:"+ad.domCount(),"ifr:"+ad.iframeCount()];return"PI="+i.join("|")},UI:function(){var e=["vid:"+av.visitorId(),"sid:"+av.sessionId(),"lv:"+av.lastVisit(),"un:"+av.userNick(),"uo:"+av.userOrigin(),"ae:"+av.advCount(),"lu:"+av.fvisitorId(),"si:"+av.ssoInfo(),"rs:"+(n?1:0),"dm:"+(B?1:0),"su:"+av.subp()];return"UI="+e.join("|")},EX:function(i,e){if(m&1!=1){return""}i=(null!=i)?i||"":b;e=(null!=e)?e||"":a;return"EX=ex1:"+i+"|ex2:"+e},MT:function(){return"MT="+aF().join("|")},V:function(){return an},R:function(){return"gUid_"+new Date().getTime()}};function ax(){var aK="-",aH=F.referrer.toLowerCase(),D=j.toLowerCase();if(""==t(X)){if(""!=aH){aK=ak(aH)}at(X,aK,"","weibo.com")}var aI=/weibo.com/reg.php/;if(D.match(aI)){var aJ=V(unescape(D),"sharehost","&","");var i=V(unescape(D),"appkey","&","");if(""!=aJ){at(X,aJ,"","weibo.com")}at("appkey",i,"","weibo.com")}}function d(e,i){G(e,i)}function G(i,D){D=D||{};var e=new Image(),aH;if(D&&D.callback&&typeof D.callback=="function"){e.onload=function(){clearTimeout(aH);aH=null;D.callback(true)}}SUDA.img=e;e.src=i;aH=setTimeout(function(){if(D&&D.callback&&typeof D.callback=="function"){D.callback(false);e.onload=null}},D.timeout||2000)}function x(e,aH,D,aI){SUDA.sudaCount++;if(!av.visitorId()&&!L()){if(u<3){u++;setTimeout(x,500);return}}var i=N+[ai.V(),ai.CI(),ai.PI(e),ai.UI(),ai.MT(),ai.EX(aH,D),ai.R()].join("&");G(i,aI)}function y(e,D,i){if(aG||A){return}if(SUDA.sudaCount!=0){return}x(e,D,i)}function ab(e,aH){if((""==e)||(undefined==e)){return}av.setAEC(e);if(0==aH){return}var D="AcTrack||"+t(aa)+"||"+t(H)+"||"+av.userNick()+"||"+e+"||";var i=ag+D+"&gUid_"+new Date().getTime();d(i)}function aq(aI,e,i,aJ){aJ=aJ||{};if(!i){i=""}else{i=escape(i)}var aH="UATrack||"+t(aa)+"||"+t(H)+"||"+av.userNick()+"||"+aI+"||"+e+"||"+ad.referrer()+"||"+i+"||"+(aJ.realUrl||"")+"||"+(aJ.ext||"");var D=ag+aH+"&gUid_"+new Date().getTime();d(D,aJ)}function aC(aK){var i=g(aK);var aI=i.target;var aH="",aL="",D="";var aJ;if(aI!=null&&aI.getAttribute&&(!aI.getAttribute("suda-uatrack")&&!aI.getAttribute("suda-actrack")&&!aI.getAttribute("suda-data"))){while(aI!=null&&aI.getAttribute&&(!!aI.getAttribute("suda-uatrack")||!!aI.getAttribute("suda-actrack")||!!aI.getAttribute("suda-data"))==false){if(aI==F.body){return}aI=aI.parentNode}}if(aI==null||aI.getAttribute==null){return}aH=aI.getAttribute("suda-actrack")||"";aL=aI.getAttribute("suda-uatrack")||aI.getAttribute("suda-data")||"";sudaUrls=aI.getAttribute("suda-urls")||"";if(aL){aJ=J(aL);if(aI.tagName.toLowerCase()=="a"){D=aI.href}opts={};opts.ext=(aJ.ext||"");aJ.key&&SUDA.uaTrack&&SUDA.uaTrack(aJ.key,aJ.value||aJ.key,D,opts)}if(aH){aJ=J(aH);aJ.key&&SUDA.acTrack&&SUDA.acTrack(aJ.key,aJ.value||aJ.key)}}if(window.SUDA&&Object.prototype.toString.call(window.SUDA)==="[object Array]"){for(var Q=0,ae=SUDA.length;Q=D)&&(F.body.clientWidth>=i))?false:true}catch(aH){return true}}})(320,240);A=(function(){return false})();av.setUOR();var au=av.sessionId();window.SUDA=window.SUDA||[];SUDA.sudaCount=SUDA.sudaCount||0;SUDA.log=function(){x.apply(null,arguments)};SUDA.acTrack=function(){ab.apply(null,arguments)};SUDA.uaTrack=function(){aq.apply(null,arguments)};U(F.body,”click”,aC);window.GB_SUDA=SUDA;GB_SUDA._S_pSt=function(){};GB_SUDA._S_acTrack=function(){ab.apply(null,arguments)};GB_SUDA._S_uaTrack=function(){aq.apply(null,arguments)};window._S_pSt=function(){};window._S_acTrack=function(){ab.apply(null,arguments)};window._S_uaTrack=function(){aq.apply(null,arguments)};window._S_PID_=””;if(!window.SUDA.disableClickstream){y()}try{k()}catch(T){}})(); //–> ]]> 新浪科技

  • 热点
  • 产业
  • 创事记
  • 手机
  • 数码
  • 探索
  • 苹果汇
  • 创业

加载中

点击加载更多

名称

最新价

涨跌幅

登录管理我的自选股

登录

名称

最新价

涨跌幅

=version){return};data=w.jsLoader.getData();length=data.length};var addEvent=function(obj,eventType,func){if(obj.attachEvent){obj.attachEvent(“on”+eventType,func)}else{obj.addEventListener(eventType,func,false)}};var domReady=false,ondomReady=function(){domReady=true};if(d.addEventListener){var webkit=navigator.userAgent.match(/AppleWebKit/(d+)/);if(webkit&&webkit[1]<525){doReadyStateCheck()}else{d.addEventListener("DOMContentLoaded",function(){d.removeEventListener("DOMContentLoaded",arguments.callee,false);ondomReady()},false)}};function doScrollCheck(){if(domReady){return};try{d.documentElement.doScroll("left")}catch(e){return};ondomReady()};function doReadyStateCheck(){if(domReady){return};if(d.readyState=='loaded'||d.readyState=='complete'){ondomReady();return}else{setTimeout(doReadyStateCheck,1);return}};function createPosNode(){if(jsLoader.caller){return};cbkLen++;if(!domReady&&d.attachEvent){doScrollCheck()};if(!domReady){try{d.write('');s=d.getElementById('_jl_pos_'+cbkLen)}catch(e){var s=d.createElement('div');s.id='_jl_pos_'+cbkLen;s.style.display='none';d.body.insertBefore(s,d.body.firstChild)}}else{var s=d.createElement('div');s.id='_jl_pos_'+cbkLen;s.style.display='none';d.body.appendChild(s)};return s};function getScript(url,dispose,charset){var scriptNode=d.createElement("script");scriptNode.type="text/javascript";if(charset){scriptNode.charset=charset};scriptNode.onreadystatechange=scriptNode.onload=function(){if(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"){if(dispose){dispose()};scriptNode.onreadystatechange=scriptNode.onload=null;scriptNode.parentNode.removeChild(scriptNode)}};scriptNode.src=url;var h=d.getElementsByTagName("head")[0];h.insertBefore(scriptNode,h.firstChild)};var write=d.write,posNode;function cWrite(str){if(posNode.childNodes.length>0){return};if(posNode.innerHTML!=”){while(posNode.childNodes.length){posNode.parentNode.insertBefore(posNode.childNodes[0],posNode)}};posNode.innerHTML=str;while(posNode.childNodes.length){posNode.parentNode.insertBefore(posNode.childNodes[0],posNode)}};var JsObj=function(name,url){this.name=name;this.url=url;this.callback=[]};JsObj.prototype={status:’init’,onload:function(){this.status=’ok’;var errors=[];for(var i=0;i=this.list.length&&(b=0);this.showSelectIndex(b);this.stopDefault(a)}if(a.keyCode==13||a.keyCode==9){this.setIndex(b);this.stopDefault(a);this.close()}a.keyCode==27&&this.close()},open:function(){var a=this;this.showSelectIndex();this.__div_list.style.display=”block”;this.status=”open”;this.__closeFn=function(b){a.clickClose(b)};this.__keyFn=function(b){a.keyDown(b)};this.addEvent(document,”click”,this.__closeFn);this.addEvent(document,”keydown”,this.__keyFn)},close:function(){var a=this;this.__div_list.style.display=”none”;this.status=”close”;this.delEvent(document,”click”,this.__closeFn);this.delEvent(document,”keydown”,this.__keyFn)},click:function(){this.status==”open”?this.close():this.open()},$:function(objName){return document.getElementById?eval(‘document.getElementById(“‘+objName+'”)’):eval(“document.all.”+objName)},addEvent:function(a,b,c){a.attachEvent?a.attachEvent(“on”+b,c):a.addEventListener(b,c,!1)},delEvent:function(a,b,c){a.detachEvent?a.detachEvent(“on”+b,c):a.removeEventListener(b,c,!1)},readStyle:function(a,b){if(a.style[b])return a.style[b];if(a.currentStyle)return a.currentStyle[b];if(document.defaultView&&document.defaultView.getComputedStyle){var c=document.defaultView.getComputedStyle(a,null);return c.getPropertyValue(b)}return null},absPosition:function(a,b){var c=a.offsetLeft,d=a.offsetTop,e=a.offsetParent,f=””;try{while(e.id!=document.body&&e.id!=document.documentElement&&e!=b&&e!=null){f+=e.tagName+” , “;e=e.offsetParent;c+=e.offsetLeft;d+=e.offsetTop}}catch(g){}return{left:c,top:d}},stopDefault:function(a){a.preventDefault?a.preventDefault():a.returnValue=!1}}; function SubShowClass(e,t,n,r,i){var s=this;this.parentObj=this.$(e);if(this.parentObj==null&&e!=”none”)throw new Error(“SubShowClass(ID)参数错误:ID 对像不存在!(value:”+e+”)”);this.lock=!1,this.label=[],this.defaultID=n==null?0:n,this.selectedIndex=this.defaultID,this.openClassName=r==null?”selected”:r,this.closeClassName=i==null?””:i,this.mouseIn=!1;var o=function(){s.mouseIn=!0},u=function(){s.mouseIn=!1};e!=”none”&&e!=””&&(this.parentObj.attachEvent?this.parentObj.attachEvent(“onmouseover”,o):this.parentObj.addEventListener(“mouseover”,o,!1)),e!=”none”&&e!=””&&(this.parentObj.attachEvent?this.parentObj.attachEvent(“onmouseout”,u):this.parentObj.addEventListener(“mouseout”,u,!1)),typeof t!=”string”&&(t=”onmousedown”),t=t.toLowerCase();switch(t){case”onmouseover”:this.eventType=”mouseover”;break;case”onclick”:this.eventType=”click”;break;case”onmouseup”:this.eventType=”mouseup”;break;default:this.eventType=”mousedown”}this.autoPlay=!1,this.autoPlayTimeObj=null,this.spaceTime=5e3}SubShowClass.prototype={version:”1.32″,author:”mengjia”,_delay:200,_setClassName:function(e,t){var n;n=e.className,n?(n=n.replace(this.openClassName,””),n=n.replace(this.closeClassName,””),n+=” “+(t==”open”?this.openClassName:this.closeClassName)):n=t==”open”?this.openClassName:this.closeClassName,e.className=n},addLabel:function(labelID,contID,parentBg,springEvent,blurEvent){var t=this,labelObj=this.$(labelID),contObj=this.$(contID);if(labelObj==null&&labelID!=”none”)throw new Error(“addLabel(labelID)参数错误:labelID 对像不存在!(value:”+labelID+”)”);var TempID=this.label.length;parentBg==””&&(parentBg=null),this.label.push([labelID,contID,parentBg,springEvent,blurEvent]);var tempFunc=function(){t.eventType==”mouseover”?(clearTimeout(labelObj._timeout),labelObj._timeout=setTimeout(function(){t.select(TempID)},t._delay)):t.select(TempID)};labelID!=”none”&&(labelObj.attachEvent?labelObj.attachEvent(“on”+this.eventType,tempFunc):labelObj.addEventListener(this.eventType,tempFunc,!1),t.eventType==”mouseover”&&(labelObj.attachEvent?labelObj.attachEvent(“onmouseout”,function(){clearTimeout(labelObj._timeout)}):labelObj.addEventListener(“mouseout”,function(){clearTimeout(labelObj._timeout)},!1))),TempID==this.defaultID?(labelID!=”none”&&this._setClassName(labelObj,”open”),this.$(contID)&&(contObj.style.display=””),this.ID!=”none”&&parentBg!=null&&(this.parentObj.style.background=parentBg),springEvent!=null&&eval(springEvent)):(labelID!=”none”&&this._setClassName(labelObj,”close”),contObj&&(contObj.style.display=”none”));var mouseInFunc=function(){t.mouseIn=!0},mouseOutFunc=function(){t.mouseIn=!1};contObj&&(contObj.attachEvent?contObj.attachEvent(“onmouseover”,mouseInFunc):contObj.addEventListener(“mouseover”,mouseInFunc,!1),contObj.attachEvent?contObj.attachEvent(“onmouseout”,mouseOutFunc):contObj.addEventListener(“mouseout”,mouseOutFunc,!1))},select:function(num,force){if(typeof num!=”number”)throw new Error(“select(num)参数错误:num 不是 number 类型!(value:”+num+”)”);if(force!=1&&this.selectedIndex==num)return;var i;for(i=0;i=this.label.length&&(t=0),this.select(t),this.autoPlay==1&&(clearInterval(this.autoPlayTimeObj),this.autoPlayTimeObj=setInterval(function(){e.autoPlayFunc()},this.spaceTime))},previousLabel:function(){var e=this,t=this.selectedIndex;t–,t<0&&(t=this.label.length-1),this.select(t),this.autoPlay==1&&(clearInterval(this.autoPlayTimeObj),this.autoPlayTimeObj=setInterval(function(){e.autoPlayFunc()},this.spaceTime))},stop:function(){clearInterval(this.autoPlayTimeObj),this.autoPlay=!1},$:function(objName){return document.getElementById?eval('document.getElementById("'+objName+'")'):eval("document.all."+objName)}},SubShowClass.readCookie=function(e){var t="",n=e+"=";if(document.cookie.length>0){var r=document.cookie.indexOf(n);if(r!=-1){r+=n.length;var i=document.cookie.indexOf(“;”,r);i==-1&&(i=document.cookie.length),t=unescape(document.cookie.substring(r,i))}}return t},SubShowClass.writeCookie=function(e,t,n,r){var i=””,s=””;n!=null&&(i=new Date((new Date).getTime()+n*36e5),i=”; expires=”+i.toGMTString()),r!=null&&(s=”;domain=”+r),document.cookie=e+”=”+escape(t)+i+s},SubShowClass.sum=SubShowClass.readCookie(“SSCSum”),/^d+$/.test(SubShowClass.sum)?SubShowClass.sum++:SubShowClass.sum=1,SubShowClass.writeCookie(“SSCSum”,SubShowClass.sum,12); ]]> ‘; } dots.style.width=dotswidth; dots.innerHTML = dotsStr; this.doms.dots = dots.getElementsByTagName(‘p’); // 前进/后退按钮 this._addEvent(btnPrev, ‘click’, function () { that.prev(); }); this._addEvent(btnNext, ‘click’, function () { that.next(); }); }, onAniStart : function () {}, onAniEnd : function () {}, onIndexChanged : function (index) { var that = this, dots = this.doms.dots, total = this.states.total / 2; for(var i = 0; i =1280){ if(navigator.appName == “Microsoft Internet Explorer” && navigator.appVersion.match(/8./i)==”8.”){ tech_body.className=”tech-show”; head_top.className=head_class+’ tech-show’; } } else{ if(navigator.appName == “Microsoft Internet Explorer” && navigator.appVersion.match(/8./i)==”8.”){ tech_body.className=””; head_top.className=head_class; } } } function debounce(func, wait, immediate) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if (!immediate) func.apply(context, args); }; var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait); if (callNow) func.apply(context, args); }; } // 添加resize的回调函数,但是只允许它每300毫秒执行一次 _addEvent(window,’resize’,debounce(function(event) { setWidth(); }, 300)); setWidth(); //左栏切换 var subShow = new SubShowClass(‘video-tab’, ‘click’); subShow.addLabel(‘vtab1’, ‘vcon1’); subShow.addLabel(‘vtab2’, ‘vcon2’); //左边栏滚动 window.slide_02 = new Slider({ wrap : ‘weixin-slider’, itemClass : ‘weixin-item’, startOn : 0, // startOnPX : 300, slideBy : 1, // slidePX : 400, speed : 3, isVertical : false, isLoop : true, autoPlay : true, autoInterval : 5, onReady : function () { var that = this, total = this.states.total / 2, dots = this._id(‘weixin-dot’), dotswidth=20*total+”px”, dotCls = ”, dotsStr = ”; // 点阵 for(var i = 0; i < total; i ++){ dotCls = i == 0 ? 'animate-cur' : ''; dotsStr += '

‘; } dots.style.width=dotswidth; dots.innerHTML = dotsStr; this.doms.dots = dots.getElementsByTagName(‘p’); }, onAniStart : function () {}, onAniEnd : function () {}, onIndexChanged : function (index) { var that = this, dots = this.doms.dots, total = this.states.total / 2; for(var i = 0; i -1, //IE内核 presto: u.indexOf(‘Presto’) > -1, //opera内核 webKit: u.indexOf(‘AppleWebKit’) > -1, //苹果、谷歌内核 gecko: u.indexOf(‘Gecko’) > -1 && u.indexOf(‘KHTML’) == -1,//火狐内核 mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端 ios: !!u.match(/(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 android: u.indexOf(‘Android’) > -1 || u.indexOf(‘Adr’) > -1, //android终端 iPhone: u.indexOf(‘iPhone’) > -1 , //是否为iPhone或者QQHD浏览器 iPad: u.indexOf(‘iPad’) > -1, //是否iPad webApp: u.indexOf(‘Safari’) == -1, //是否web应该程序,没有头部与底部 weixin: u.indexOf(‘MicroMessenger’) > -1, //是否微信 (2015-01-22新增) qq: u.match(/sQQ/i) == ” qq” //是否QQ }; }(), language:(navigator.browserLanguage || navigator.language).toLowerCase() } })(); jsLoader({ name: ‘jquery2’, url: ‘//news.sina.com.cn/268/2015/0112/jquery.newest.js’, callback: function() { if(techbrowser.versions.mobile||techbrowser.versions.android||techbrowser.versions.ios||techbrowser.versions.iPad||techbrowser.versions.iPhone){ $(“#tech_head”).on(“mouseover”,’.btn’,function(e){ $(‘#tech_head .select’).removeClass(‘selecton’); $(this).parent().addClass(“selecton”); }) $(“#tech_head li a “).on(“click”,function(e){ $(this).closest(‘.select’).removeClass(“selecton”); }) $(‘#tech_body’).on(“touchend”,function(e){ if(e.target.id==”datepicker”){ if($(“#ui-datepicker-div”).css(“display”)==”block”){ $(“#ui-datepicker-div”).css(“display”,”none”); } else{ $(“#ui-datepicker-div”).css(“display”,”block”); } } else $(“#ui-datepicker-div”).hide(); if(e.target.className==”ds_title” || e.target.parentNode.className==”dsl_cont”){ $(“#timePickerDiv .ds_list”).show(); } else{ $(“#timePickerDiv .ds_list”).hide(); } }) $(‘.tech-main’).on(“touchend”,function(){ $(‘#tech_head .select’).removeClass(‘selecton’); }) } else{ $(“#tech_head”).on(“mouseenter”,’.select’,function(e){ $(this).addClass(“selecton”); }) $(“#tech_head”).on(“mouseleave”,’.select’,function(e){ $(this).removeClass(“selecton”); }) // if(browser.versions.trident){ // $(‘#tech_body’).on(“click”,function(e){ // if(e.target.id==”datepicker”){ // if($(“#ui-datepicker-div”).css(“display”)==”block”){ // $(“#ui-datepicker-div”).css(“display”,”none”); // } // else{ // $(“#ui-datepicker-div”).css(“display”,”block”); // } // } // else $(“#ui-datepicker-div”).hide(); // }) // } } } }); (function(){ var reIE = /MSIEs([^;]*)/; var browser = { ie: 0, loaded: false }; (function(browser){ function toNumber(str){ var count = 0; return parseFloat(str.replace(/./g, function() { count++; return (count === 1) ? ‘.’ : ”; })); } var ua = (navigator && navigator.userAgent) || ”; var temp = ua.match(reIE); if(temp && temp[1]){ browser.ie = toNumber(temp[1]); } })(browser); (function(){ var utils = { hasClass: function(elem, cls){ var reg = new RegExp(‘(^|\s)’ + cls + ‘($|\s)’); return reg.test(elem.className); }, removeClass: function(elem, cls){ var reg = new RegExp(‘(^|\s)’ + cls + ‘($|\s)’, ‘g’); elem.className = elem.className.replace(reg, ‘ ‘); }, addClass: function(elem, cls){ if(!utils.hasClass(elem, cls)){ elem.className += ‘ ‘ + cls; } }, viewData: function(){ var e = 0, l = 0, i = 0, g = 0, f = 0, m = 0; var j = window, h = document, k = h.documentElement; e = k.clientWidth || h.body.clientWidth || 0; l = j.innerHeight || k.clientHeight || h.body.clientHeight || 0; g = h.body.scrollTop || k.scrollTop || j.pageYOffset || 0; i = h.body.scrollLeft || k.scrollLeft || j.pageXOffset || 0; f = Math.max(h.body.scrollWidth, k.scrollWidth || 0); m = Math.max(h.body.scrollHeight, k.scrollHeight || 0, l); return {scrollTop: g,scrollLeft: i,documentWidth: f,documentHeight: m,viewWidth: e,viewHeight: l}; } }; function getPosition(a) { for (var b = {x: 0,y: 0}; a.offsetParent; ) b.x += a.offsetLeft, b.y += a.offsetTop, a = a.offsetParent; return b } function addEvent(obj,eventType,func){if(obj.attachEvent){obj.attachEvent(“on” + eventType,func);}else{obj.addEventListener(eventType,func,false)}}; // mod lqf 20140618 {fix view too low} if(browser.ie != 6){ var container = document.getElementById(‘rightFixedAd’); var container1=document.getElementById(‘leftFixBox’), techLeft=document.getElementById(‘tech-left’); //var blk292FixedContainer = document.getElementById(‘blk292FixedContainer’); var theY = getPosition(container).y; var theboxY=getPosition(container1).y; var tech_body=document.getElementById(“tech_body”), fix_btn=document.getElementById(“fix-btn”), top_btn=document.getElementById(“top-btn”), top_btn_span=top_btn.getElementsByTagName(“span”)[0]; function adjustADPosition(bottomHeight){ var adY = getPosition(container).y; var boxY=getPosition(container1).y; if(adY > theY){ theY = adY; } if(boxY>theboxY){ theboxY=boxY; } var adH = container.offsetHeight; var vD = utils.viewData(); var fixbtnTop=parseInt(vD.viewHeight*4/3); if(vD.scrollTop>=fixbtnTop){ utils.removeClass(top_btn, ‘opacity-scroll-tag’); top_btn_span.style.opacity=1; } else{ utils.addClass(top_btn, ‘opacity-scroll-tag’); top_btn_span.style.opacity=0; } if(vD.scrollTop >= theY+250){ utils.addClass(container, ‘right-fixed-area-fixed’); } else { utils.removeClass(container, ‘right-fixed-area-fixed’); } if(vD.scrollTop >= theboxY+110){ utils.addClass(techLeft, ‘left-fixed’); } else { utils.removeClass(techLeft, ‘left-fixed’); } } var scrollTimeout = null; var scrollCallback = function(){ adjustADPosition(0); }; var resizeTimeout = null; addEvent(window, ‘scroll’, function(){ if(scrollTimeout) window.clearTimeout(scrollTimeout); scrollTimeout = window.setTimeout(scrollCallback, 10); }); addEvent(window, ‘resize’, function(){ if(resizeTimeout) window.clearTimeout(resizeTimeout); resizeTimeout = window.setTimeout(scrollCallback, 10); }); addEvent(top_btn, ‘click’, function(){ if(utils.hasClass(top_btn,”opacity-scroll-tag”)) return false; document.body.scrollTop ? document.body.scrollTop=0 : document.documentElement.scrollTop=0; }) } // mod lqf 20140618 {fix view too low} end })(); })(); ]]>

3500 && st 6500 && isShowed != 2) { ad_60140.style.display = ‘none’; ad_60141.style.display = ‘block’; isShowed = 2; } if(st p){o={retcode:6111}}}}}if(o.retcode!==undefined){return false}var a=l+”?callback=sinaSSOManager.updateCookieCallBack”;sinaSSOManager.es(b,a)}catch(k){}return true};sinaSSOManager.updateCookie();]]>

Source

Leave a Reply

Your email address will not be published. Required fields are marked *