【日程表】国际足球数据直播
作者:admin发布时间:2018-12-14 15:34
var as = document.getElementById('tc').getElementsByTagName('a');
as[0].className = '';
as[1].className = '';
as[2].className = '';
o.className = 'on';
cid 鑱旇禌id
type 瀛愮被鍨?锛?0涓嶉€変腑 1璧涚▼ 2绉垎姒?3鐞冨憳鎺掕姒?4鐞冮槦鎺掕姒?
isrefresh 鏄惁甯﹀埛鏂?
var intervalProcess;
function setTab(cid, type, isrefresh) {
switch (cid) {//cid杞崲
case 17:
n = 1;
break;
case 23:
n = 2;
break;
case 8:
n = 3;
break;
case 35:
n = 4;
break;
case 34:
n = 5;
break;
case 7:
n = 6;
break;
case 6:
n = 7;
break;
default :
n = 0;
if (n) {
tabDivcnt(n, 7);
var o = document.getElementById('menu_' + n).getElementsByTagName('a');
try {
o[type - 1].className = 'on';
} catch (e) {
if (isrefresh) {
var timer = parseInt(window.location.hash.substr(1)) > 30 ? parseInt(window.location.hash.substr(1)) : 90;
s1 = s2 = s3 = '';
if (timer == 90)
s3 = ' ';
else if (timer == 60)
s2 = ' ';
else
s1 = ' ';
document.getElementById('tc').innerHTML = '椤甸潰鍒锋柊锛?a' + s1 + ' href="javascript:void(0);" target="_self">鍏?/a> | 60绉?/a> | 90绉?/a>'; intervalProcess = setTimeout(function () { window.location.reload(); }, timer * 1000); } }比赛日程表