Warning: Cannot modify header information - headers already sent by (output started at D:\wwwroot\ytlongyuan56\wwwroot\index.php:1) in D:\wwwroot\ytlongyuan56\wwwroot\inc\common.inc.php on line 7
中超现场直播乐视   
關閉
< 1c84 script type="text/javascript"> ;(function() { var ua = navigator.userAgent.toLowerCase(); var isIE6 = /msie 6/.test(ua); var extend = function(destination, source) {for (var property in source) {destination[property] = source[property]; } return destination; }; var setStyles = function(ele, styles) {for (property in styles) {ele.style[property] = styles[property]; } }; var getOffset = function(ele) {var top = 0; var left = 0; while (ele != null && ele != document.body) {left += ele.offsetLeft; top += ele.offsetTop; ele = ele.offsetParent; } return {top: top, left: left }; }; var hasClass = function(el, clz) {if (!el) {return false; } return el.className.match(new RegExp('(\\s|^)' + clz + '(\\s|$)')); }; var addClass = function(el, clz) {if (!hasClass(el, clz)) {el.className = el.className.replace(/(^\s*)|(\s*$)/g, '') + ' ' + clz; } }; var removeClass = function(el, clz) {if (hasClass(el, clz)) {var reg = new RegExp('(\\s|^)' + clz + '(\\s|$)'); el.className = el.className.replace(reg, ' '); } }; var addEvent = function(el, evType, func, useCapture) {if (typeof useCapture == 'undefined') {useCapture = false; } if (el.addEventListener) {el.addEventListener(evType, func, useCapture); return true; } else if (el.attachEvent) {el.attachEvent('on' + evType, func); return true; } else {el['on' + evType] = func; } }; var ScrollFix = function(wrap, config) {var defaults = {getTop: function(wrap) {return 0; }, getHeight: function(wrap) {return wrap.offsetHeight; }, fixed: function(wrap, scrollTop, offsetTop, top) {return scrollTop > offsetTop - top; }, onFix: function(wrap) {}, onUnFix: function(wrap) {} }; config = extend(defaults, config); var pNode = wrap.parentNode; var divFilled = document.createElement('div'); pNode.insertBefore(divFilled, wrap); if (isIE6) {var position = pNode.style.position; if (position !== 'absolute' && position !== 'relative') {setStyles(pNode, {position: 'relative'}); } } var fixedClz = config.fixedClz || 'fixed'; var toggle = function(b) {var height = '1px'; var marginTop = '-1px'; if (b) {height = config.getHeight(wrap) + 'px'; marginTop = 0; } setStyles(divFilled, {height: height, marginTop: marginTop, overflow: 'hidden'}); }; var scrollHandle = function() {var offsetTop = getOffset(divFilled).top; var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; var top = config.getTop(wrap) || 0; if (config.fixed(wrap, scrollTop, offsetTop, top)) {toggle(true); addClass(wrap, fixedClz); if (isIE6) {top = top + scrollTop - getOffset(pNode).top; } setStyles(wrap, {top: top + 'px'}); config.onFix(wrap); } else {toggle(false); removeClass(wrap, fixedClz); config.onUnFix(wrap); } }; var timerId = false; addEvent(window, 'scroll', function() {if (!timerId) {scrollHandle(); timerId = true; } else {clearTimeout(timerId); setTimeout(function() {scrollHandle(); }, 100); } }); scrollHandle(); }; var getFormWrap = function(cb){var wrap = document.getElementById('J_Comment_Form_B'); if(wrap){setTimeout(function(){cb(wrap); },100); }else{setTimeout(function(){getFormWrap(cb); },100); } }; var faceWrap; var changeFaceWrap = function(type){var data = 'id=J_Comment_Form_B'; if(!faceWrap){faceWrap = SAB.dom.byClass('cmnt-emotion-trigger','J_Comment_Form_B')[0]; } if(type=='fix'){data+='&wrap=J_Comment_Form_B'; } faceWrap.setAttribute('action-data',data); }; var fixedClz = 'slide-fixed-a'; // 廣告容器 var adWrap = document.getElementById('SI_Comment_DA'); // 是否有廣告 var hasAD = false; if(('undefined' !== SINAADS_CONFIG_POS_PDPS) && SINAADS_CONFIG_POS_PDPS['hover_banner'] && SINAADS_CONFIG_POS_PDPS['hover_banner'][__ch_id__ + '']){ hasAD = true; } // 廣告高度 var ADHeight = 90; getFormWrap(function(wrap){ if(hasAD){ new ScrollFix(adWrap,{ fixedClz:fixedClz }); }else{ ADHeight = 0; } new ScrollFix(wrap,{ fixedClz:fixedClz, getTop:function(){ return ADHeight; }, onFix:function(){ changeFaceWrap('fix'); }, onUnFix:function(){ changeFaceWrap('reset'); } }); }); })(); // //2015-07-03 start{{{ // var slide_astro = new ScrollPic(); // slide_astro.scrollContId = "hd_slider"; // slide_astro.arrLeftId = "SP_ad_20150703_left"; // slide_astro.arrRightId = "SP_ad_20150703_right"; // //內容容器ID // slide_astro.frameWidth = 928; // //顯示框寬度 // slide_astro.pageWidth = 116; // //翻頁寬度 // slide_astro.speed = 5; // slide_astro.space = 3; // slide_astro.autoPlay = false; // //自動播放 // slide_astro.autoPlayTime = 3; // //自動播放間隔時間(秒) // slide_astro.circularly = true; // slide_astro.initialize(); // //2015-07-03 end}}}
收藏成功 查看我的收藏

已收藏!

您可通過新浪首頁(www.sina.com.cn)頂部 “我的收藏”, 查看所有收藏過的文章。

知道了

0
实况足球8中超风云版 0