//' +'' +'' +'' +'
' +'' +'' +'' +'' +'' +'
' +'用户名' +'' +'
' +'密 码' +'' +'
' +'' +'
' +'  隐身登录
' +'  自动登录' +'
' +'[注册] ' +'[忘记密码]' +'
' +'
' +''; // ------------------------------ // menu logout var menuLogout1_str='' +'' +'' +' ' +'
' +'' +'' +'' +'
欢迎回来' +'' +'
' +'
' +'' +'' +'' +'
'; var menuLogout2_str='
' +'[安全登出]' +'
'; var menuLogout_array=new Array(); var temp_obj=new Object(); temp_obj.title_str='我的VIP'; temp_obj.open_bool=false; temp_obj.title_str='升级VIP'; temp_obj.link_str='User_main.asp?action=vip'; temp_obj.open_bool=false; menuLogout_array.push(temp_obj); delete temp_obj; var temp_obj=new Object(); temp_obj.title_str='会员中心'; temp_obj.open_bool=false; temp_obj.label_array=new Array(); temp_obj.link_array=new Array(); temp_obj.label_array.push('个人资料'); temp_obj.link_array.push('User_main.asp'); temp_obj.label_array.push('修改信息'); temp_obj.link_array.push('User_main.asp?action=edit'); temp_obj.label_array.push('我的短信'); temp_obj.link_array.push('messager.asp?action=new'); temp_obj.label_array.push('音乐收藏'); temp_obj.link_array.push('User_main.asp?action=collect'); temp_obj.label_array.push('我的书签'); temp_obj.link_array.push('User_book.asp'); temp_obj.label_array.push('我的好友'); temp_obj.link_array.push('User_main.asp?action=friend'); temp_obj.label_array.push('我的定单'); temp_obj.link_array.push('shop_myuser.asp?action=dingdan'); menuLogout_array.push(temp_obj); delete temp_obj; var temp_obj=new Object(); temp_obj.title_str='我的文集'; temp_obj.open_bool=false; temp_obj.label_array=new Array(); temp_obj.link_array=new Array(); temp_obj.label_array.push('我的文集'); temp_obj.link_array.push('user_corpus.asp'); menuLogout_array.push(temp_obj); delete temp_obj; var temp_obj=new Object(); temp_obj.title_str='发布信息'; temp_obj.open_bool=false; temp_obj.label_array=new Array(); temp_obj.link_array=new Array(); temp_obj.label_array.push('发布新闻'); temp_obj.link_array.push('User_put.asp?action=news'); temp_obj.label_array.push('发表专题'); temp_obj.link_array.push('User_put.asp?action=art'); temp_obj.label_array.push('上传贴图'); temp_obj.link_array.push('User_put.asp?action=pic'); temp_obj.label_array.push('推荐网站'); temp_obj.link_array.push('User_put.asp?action=web'); temp_obj.label_array.push('发布产品'); temp_obj.link_array.push('User_put.asp?action=shop'); temp_obj.label_array.push('发布音乐'); temp_obj.link_array.push('User_put.asp?action=dj'); temp_obj.label_array.push('发布软件'); temp_obj.link_array.push('User_put.asp?action=down'); menuLogout_array.push(temp_obj); delete temp_obj; var temp_obj=new Object(); temp_obj.title_str='栏目导航'; temp_obj.open_bool=false; temp_obj.label_array=new Array(); temp_obj.link_array=new Array(); temp_obj.label_array.push('新闻资讯'); temp_obj.link_array.push('news.asp'); temp_obj.label_array.push('专题中心'); temp_obj.link_array.push('art.asp'); temp_obj.label_array.push('精美图片'); temp_obj.link_array.push('pic.asp'); temp_obj.label_array.push('资源下载'); temp_obj.link_array.push('down.asp'); temp_obj.label_array.push('在线供求'); temp_obj.link_array.push('shop.asp'); temp_obj.label_array.push('酷站推荐'); temp_obj.link_array.push('web.asp'); temp_obj.label_array.push('政策法规'); temp_obj.link_array.push('js.asp'); temp_obj.label_array.push('精彩视频'); temp_obj.link_array.push('flash.asp'); temp_obj.label_array.push('歌曲音乐'); temp_obj.link_array.push('dj.asp'); temp_obj.label_array.push('影视中心'); temp_obj.link_array.push('vid.asp'); temp_obj.label_array.push('网站留言'); temp_obj.link_array.push('book.asp'); temp_obj.label_array.push('论坛讨论'); temp_obj.link_array.push('bbs/'); menuLogout_array.push(temp_obj); delete temp_obj; function creatLogMenu(get_str){ var temp_str=''; for(var loops=0;loops'); creatLeftMenu_obj=setInterval(function(){ if(document.getElementById("leftMenuMaster")!=null){ if(expandState == 1){ if(isLogin==1){ document.getElementById("leftMenuMaster").innerHTML=menuLogout1_str+creatLogMenu()+menuLogout2_str; }else{ document.getElementById("leftMenuMaster").innerHTML=menuLogin_str; } }else{ document.getElementById("leftMenuMaster").innerHTML=menuAction_str; } clearInterval(creatLeftMenu_obj); leftMenuScroll(); } },300); } leftMenuInit(); // --------------------------------------------------------------------- // init menu window.scrollBy(0,1); var leftMenuBodyBase_obj=(document.documentElement.scrollTop>document.body.scrollTop?document.documentElement:document.body); var leftMenuPageScroll_num=leftMenuBodyBase_obj.scrollTop; function leftMenuScroll(){ if(document.getElementById("leftMenuMaster")!=null){ document.getElementById("leftMenuMaster").style.top=leftMenuBodyBase_obj.scrollTop+'px'; document.getElementById("leftMenuMaster").style.left=leftMenuBodyBase_obj.scrollLeft+'px'; } } // on Scroll if(scrollList_array!=null){ scrollList_array.push(leftMenuScroll); var scrollList_num=leftMenuBodyBase_obj.scrollTop; }else{ var scrollList_array=new Array(); scrollList_array.push(leftMenuScroll); setInterval(function(){ if(scrollList_num!=leftMenuBodyBase_obj.scrollTop){ for(var loops in scrollList_array){ scrollList_array[loops](); } } scrollList_num=leftMenuBodyBase_obj.scrollTop; },50); } // --------------------------------------------------------------------- // public method function leftsetCookie(name, value, expires, path, domain, secure) { var expdate = new Date(); expdate.setTime (expdate.getTime() + (86400 * 1000 * 31)); var curCookie = name + "=" + escape(value) + "; expires=" + expdate.toGMTString() + "; path=/" + "; domain=hx66.com.cn" document.cookie = curCookie } function leftgetCookie(name) { var prefix = name + "=" var cookieStartIndex = document.cookie.indexOf(prefix) if (cookieStartIndex == -1) return null var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) } function expand(){ if(expandState == 0){ leftsetCookie("leftLoginCookie","1"); if(document.getElementById("leftMenuMaster")!=null){ if(isLogin==1){ document.getElementById("leftMenuMaster").innerHTML=menuLogout1_str+creatLogMenu()+menuLogout2_str; }else{ document.getElementById("leftMenuMaster").innerHTML=menuLogin_str; } } expandState=1; } else{ leftsetCookie("leftLoginCookie","0"); document.getElementById("leftMenuMaster").innerHTML=menuAction_str; expandState=0; } } function expandOfLog(get_str){ if(get_str!=null&&isLogin==1){ document.getElementById("leftMenuCT").innerHTML=creatLogMenu(get_str); } } function CheckHWLoginForm(){ if(HWLoginForm.username.value==''){ alert('请填写用户名!'); HWLoginForm.username.focus(); return false; }else if(HWLoginForm.password.value==''){ alert('请填写密码!'); HWLoginForm.password.focus(); return false; } document.HWLoginForm.submit(); } function Click_Name(){ if(document.HWLoginForm.userhidden.checked == true) { alert("选中你将以隐身身份登陆本站。"); document.HWLoginForm.CookieDate.checked = false; } } function Click_Auto(){ if(document.HWLoginForm.CookieDate.checked == true){ alert("选中可能产生密码安全问题,建议仅限于非公共场所使用。"); document.HWLoginForm.userhidden.checked = false; } } //