四海钓鱼直播首页
精彩钓鱼视频

bdjs_wap_02();
var DYR = window.DYR || {}; /*视频直播列表切换*/ var liArray = document.getElementsByClassName('play-list')[0].getElementsByTagName('dt')[0].getElementsByTagName('li'); var ddArray = document.getElementsByClassName('play-list')[0].getElementsByTagName('dd'); for(var i = 0; i= showTime && nowTime < showTimeNext){ liArray[i].className = 'hover'; } }else{ if(nowTime >= showTime){ liArray[i].className = 'hover'; } } } }; DYR.liveShowTime(); if(window.innerWidth){ var winWidth = window.innerWidth; }else if((document.body) && (document.body.clientWidth)){ var winWidth = document.body.clientWidth; } if(window.innerHeight){ var winHeight = window.innerHeight; }else if((document.body) && (document.body.clientHeight)){ var winHeight = document.body.clientHeight; } if(winWidth > winHeight){ var videoHeight = winHeight; }else{ var videoHeight = winWidth; } DYR.rotationScreen = function(){ var videoObj = document.getElementsByTagName('video')[0]; var mainObj = document.getElementsByClassName('main')[0]; var navObj = document.getElementsByClassName('nav')[0]; if (window.orientation == 180 || window.orientation==0) { videoObj.style.height = '290px'; videoObj.style.position = 'static'; mainObj.style.height = 'auto'; navObj.style.display = 'block'; } if(window.orientation == 90 || window.orientation == -90) { navObj.style.display = 'none'; videoObj.style.height = videoHeight+'px'; videoObj.style.position = 'fixed'; videoObj.style.top = 0; videoObj.style.right = 0; videoObj.style.left = 0; videoObj.style.zIndex = 100; mainObj.style.height = videoHeight+'px'; mainObj.style.overflow = 'hidden'; } } window.addEventListener('orientationchange', function(event){ DYR.rotationScreen() }) if(winWidth > winHeight){ DYR.rotationScreen() }