// jscript 文件 function login() { var name; var pwd; var img; // alert(document.cookie.substring(document.cookie.length-5,document.cookie.length)); img = document.getelementbyid("txtimg").value; //判断验证码是否正确 if(img==document.cookie.substring(document.cookie.length-5,document.cookie.length)) { name = document.getelementbyid("txtname").value; pwd = document.getelementbyid("txtpwd").value; //以下是验证用户合法性 var loginbool = showasp_index.indexlogin(name,pwd); if(loginbool.value == true) { alert('登陆成功!'); //页面显示成功登陆的会员信息 //document.getelementbyid("liuserinfo").innerhtml = ""; //se.userinfo(); //alert(se.userinfo()); //会员编号 var id = showasp_index.getuseridbyname(name).value; showuserinfo(name,id) } else { alert('登陆失败!'); } } else { alert('验证码错误!'); document.getelementbyid("txtimg").value = ''; document.getelementbyid("txtimg").focus(); } } function loginnei() { var name; var pwd; var img; // alert(document.cookie.substring(document.cookie.length-5,document.cookie.length)); img = document.getelementbyid("txtimg").value; //判断验证码是否正确 if(img==document.cookie.substring(document.cookie.length-5,document.cookie.length)) { name = document.getelementbyid("txtname").value; pwd = document.getelementbyid("txtpwd").value; //以下是验证用户合法性 var loginbool = showasp_indexasp_logincontent.indexlogin(name,pwd); if(loginbool.value == true) { alert('登陆成功!'); //页面显示成功登陆的会员信息 //document.getelementbyid("liuserinfo").innerhtml = ""; //se.userinfo(); //alert(se.userinfo()); //会员编号 //var id = showasp_indexasp_logincontent.getuseridbyname(name).value; //alert(document.getelementbyid("hidurl").value); parent.location.href=document.getelementbyid("hidurl").value; //showuserinfo(name,id) } else { alert('登陆失败!'); } } else { alert('验证码错误!'); document.getelementbyid("txtimg").value = ''; document.getelementbyid("txtimg").focus(); } } //取消按钮,清空页面输入框 function clearinfo() { document.getelementbyid("txtname").value = ""; document.getelementbyid("txtpwd").value = ""; document.getelementbyid("txtimg").value = ""; } //显示登陆成功的会员信息 function showuserinfo(name,id) { document.getelementbyid("liuserinfo").innerhtml = ""; var str = showasp_index.showuserinfo(name,id).value; document.getelementbyid("liuserinfo").innerhtml =str; } function openui(id) { location.href = 'showasp/associatorasp/userinfo.aspx?u_id=' + id; } function openshopinfo(id) { location.href = 'showasp/shop_room/buylist.aspx?u_id=' + id; } function opendef() { location.href = "showasp/bbs/default.aspx"; } function inshoproom() { location.href = "showasp/shop_room/shop_index.aspx"; } function indexreg() { location.href = "showasp/associatorasp/reg.aspx"; //window.open ('showasp/associatorasp/reg.aspx', 'newwindow', 'height=800, width=800, top=100, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no'); } function indexgly() { location.href = "showasp/bbs/glyshowuser.aspx"; //window.open ('showasp/associatorasp/reg.aspx', 'newwindow', 'height=800, width=800, top=100, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no'); } function bbsreg() { location.href = "showasp/associatorasp/reg.aspx"; //window.open ('../../showasp/associatorasp/reg.aspx', 'newwindow', 'height=800, width=800, top=100, left=100, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no'); } //4.29 //会员退出登陆 function exituser() { showasp_index.userexit(); // document.getelementbyid("liuserinfo").innerhtml ="
"; // document.getelementbyid("liuserinfo").innerhtml =""; // document.getelementbyid("liuserinfo").innerhtml += "
"; // document.getelementbyid("liuserinfo").innerhtml += "
"; showasp_index.userexit(); document.getelementbyid("liuserinfo").innerhtml ="
  • 用户名:
  • "; document.getelementbyid("liuserinfo").innerhtml += "
  • 密   码:
  • "; document.getelementbyid("liuserinfo").innerhtml += "
  • 验证码:
  • "; document.getelementbyid("liuserinfo").innerhtml += "
  •   注册
  • "; }