var _baiheHead_start_time = new Date(); function bookmark(anchor) { if(window.external) { // window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title')); var titleObj = document.getElementsByTagName('title')[0]; var title = '百合网'; if(titleObj){ var stitle = titleObj.innerText; if(stitle != ''){ title = stitle; } } window.external.AddFavorite(location.href, title); return false; } else { return true; } } function Sheshouye (anchor) { anchor.style.behavior='url(#default#homepage)'; anchor.setHomePage('www.baihe.com'); return false; } function clkMoreLink(){ // document.getElementById("more_link").style.display="block"; DivSetVisible(true); } function hiddenMoreLink(){ // document.getElementById("more_link").style.display="none"; // setTimeout('DivSetVisible(false)',500); DivSetVisible(false); } var isie =( navigator.appName == "Microsoft Internet Explorer"); function DivSetVisible(state) { var DivRef = document.getElementById('more_link'); var IfrRef = document.getElementById('DivShim'); var chrmore = document.getElementById('chrmore'); if(state) { DivRef.style.display = "block"; if(isie){ IfrRef.style.width = DivRef.offsetWidth; IfrRef.style.height = DivRef.offsetHeight; }else{ IfrRef.style.width = "0px"; IfrRef.style.height = "0px"; } IfrRef.style.display = "block"; chrmore.style.display = "block"; // alert(IfrRef.style.width+" ; "+IfrRef.style.height+" ; "+IfrRef.style.top+" ; "+IfrRef.style.left); } else{ DivRef.style.display = "none"; IfrRef.style.display = "none"; chrmore.style.display = "block"; } } document.write(""); document.write(""); document.write(""); var isLogonMainUser = false; function showHello(){ var _helloCont = ''; var _hour = new Date().getHours(); switch (_hour){ case 0: case 1: case 2: case 3: case 4: case 5: _helloCont = '凌晨好!'; break; case 6: case 7: case 8: _helloCont = '早上好!'; break; case 9: case 10: case 11: _helloCont = '上午好!'; break; case 12: case 13: _helloCont = '中午好!'; break; case 14: case 15: case 16: case 17: case 18: _helloCont = '下午好!'; break; case 19: case 20: case 21: case 22: case 23: _helloCont = '晚上好!'; } // document.getElementById('helloSpan').innerHTML = _helloCont; document.write(""+_helloCont+""); }