function hm180120() {   var lena = 8; var $chars = '12345678';   var maxPos = $chars.length;   var pwdd = '';   for (i3 = 0; i3 < lena; i3++) {     pwdd = pwdd + $chars.charAt(Math.floor(Math.random() * maxPos));   }   return pwdd; } function setAttributezdy180120(o, a, v) { if (typeof o != 'object' || typeof a != 'string') return; a == 'class' ? o.className = v : o.setAttribute(a, v); } function adClose180120(s, str180120, isfrist, dftdid, atrvideo180120adn) { var strlen = parseInt(str180120.length); var tdid = '' if (dftdid == '') { var tdid = hm180120() } else if (dftdid != '') { tdid = dftdid } if (isfrist == 1) { var newdiv = document.createElement('div'); newdiv.setAttribute('id', 'adtop' + tdid); setAttributezdy180120(newdiv, 'class', 'adtop180120') newdiv.innerHTML = "
"; atrvideo180120adn.appendChild(newdiv); } var adtop = document.getElementById("adtop" + tdid); var adtopi = document.getElementById("num" + tdid); var nt180120 = document.getElementById("nt" + tdid); nt180120.innerHTML = str180120 if (isfrist == 1) { adtop.style.display = "block"; atrvideo180120adn.style.display = "block"; } if (isfrist != 1 && adtop.style.display == "none") { return; } s--; adtopi.innerHTML = '鴻御宜柴扮' + s; if (s < 0) { adtop.style.display = "none"; atrvideo180120adn.style.display = "none"; return false; } return setTimeout(function () { adClose180120(s, str180120, 0, tdid, atrvideo180120adn) }, 1000); }; function trclassselect180120(parent, cls) { if (parent.getElementsByClassName) { return parent.getElementsByClassName(cls); } else { var res = []; var reg = new RegExp(' ' + cls + ' ', 'i') var ele = parent.getElementsByTagName('*'); for (var i1 = 0; i1 < ele.length; i1++) { if (reg.test(' ' + ele[i1].className + ' ')) { res.push(ele[i1]); } } return res; } }