function readCookie(a) { var c = ""; var b = a + "="; if (document.cookie.length > 0) { offset = document.cookie.indexOf(b); if (offset != -1) { offset += b.length; end = document.cookie.indexOf(";", offset); if (end == -1) { end = document.cookie.length } c = unescape(document.cookie.substring(offset, end)) } } if (c == "null") { c = "" } return c } function writeCookie(b, d, a) { var c = ""; if (a != null) { c = new Date((new Date()).getTime() + a * 3600); c = "; expires=" + c.toGMTString() } if (d == null) { d = "" } document.cookie = b + "=" + escape(d) + c + ";path=/;" console.log(document.cookie); } function clear_cookies(d, c, f) { writeCookie(d, "", -10); if (d == "zz_userid") { if (c) { var e = c.split("/vip_"); if (e[1]) { var b = e[1].split("."); if (b[0]) { var a = b[0] + "_gouwuche"; writeCookie(a, "") } } } } if (!f) { if (c != "") { // alert(c); window.location.href = c; // window.navigate(c); } else { location.reload() } } } function HCmarquee(id, mw, mh, mr, sr, ms, pause) { var obj = document.getElementById(id); obj.ss = false; obj.mr = mr; obj.sr = sr; obj.mw = mw; obj.mh = mh; obj.ms = ms; obj.pause = pause; obj.pt = 0; obj.st = 0; obj.mul = 1; obj.con = ""; with(obj) { style.width = mw + "px"; style.height = mh + "px"; noWrap = false; onmouseover = stopm; onmouseout = startm; scrollTop = 0 + "px"; scrollLeft = 0 + "px" } if (obj.mr != 1) { obj.tt = mh * mr / sr; obj.ct = mh; obj.innerHTML += obj.innerHTML; setInterval(scrollUp, obj.ms) } function scrollUp() { if (obj.ss == true) { return } obj.ct += 1; if (obj.ct == obj.mh + 1) { obj.st += 1; obj.ct -= 1; if (obj.st == (obj.pause * obj.mul)) { obj.ct = 0; obj.st = 0; if (obj.mul == 1) { obj.mul = 1 } else { obj.mul = 1 } } } else { obj.pt = (++obj.scrollTop); if (obj.pt == obj.tt) { obj.scrollTop = 0 } } } function stopm() { obj.ss = true } function startm() { obj.ss = false } };