$("#headtopbar").html('
用户名: 密码: 用户注册/忘记密码充值中心
中文中文EnglishEnglish日本語日本語
') var isre =0; function loginuser() { var username = $("#username").attr("value"); var password = $("#psd").attr("value"); if(username=='') { alert("请输入用户名!"); return false; } if(password=='') { alert("请输入密码!"); return false; } var url = location.href; var paramstr = "&act=login&name="+ encodeURIComponent(username)+"&psd="+encodeURIComponent(password)+"&url="+encodeURIComponent(url)+"&ts="+new Date().getTime(); $.ajax ({ type:"post", url:"/filehandle/loginbar.aspx", dataType:"script", data:paramstr, success:function(msg,textStatus) { if(textStatus=="success") { //eval(msg); if(isre=="1") { window.location.reload(); } else if(isre=="2") { getsearchdown(); } window.showad(); } }, complete:function(XMLHttpRequest,textStatus) {}, error:function(XMLHttpRequest, textStatus, errorThrown) { //alert(XMLHttpRequest+textStatus); } }); } function iplogin() { var username =''; var password =''; var url = location.href; var paramstr = "&act=login&name="+ encodeURIComponent(username)+"&psd="+encodeURIComponent(password)+"&url="+encodeURIComponent(url)+"&ts="+new Date().getTime(); $.ajax ({ type:"post", url:"/filehandle/loginbar.aspx", dataType:"script", data:paramstr, success:function(msg,textStatus) { if(textStatus=="success") { //eval(msg); if(isre=="1") { window.location.reload(); } else if(isre=="2") { getsearchdown(); } window.showad(); } }, complete:function(XMLHttpRequest,textStatus) {}, error:function(XMLHttpRequest, textStatus, errorThrown) { //alert(XMLHttpRequest+textStatus); } }); } function logoutuser() { var url = location.href; var paramstr = "&act=out&url="+encodeURIComponent(url)+"&ts="+new Date().getTime(); $.ajax ({ type:"post", url:"/filehandle/loginbar.aspx", dataType:"script", data:paramstr, success:function(msg) { eval(msg); if(isre=="1") { var suidnum = location.href.toLowerCase().indexOf("suid="); if(suidnum>0) { var cururl =""; var tempurl = location.href.toLowerCase().split("suid="); if(tempurl[1].length>0) { if(tempurl[1].substr(0,1)=="&") { cururl = tempurl[0]+tempurl[1]; } else { cururl = tempurl[0]+tempurl[1].substr(32); } } else { cururl = tempurl[0]; } location.href=cururl; } else { window.location.reload(); } } else if(isre=="2") { getsearchdown(); } }, complete:function(XMLHttpRequest,textStatus) {}, error:function(XMLHttpRequest, textStatus, errorThrown) { } }); } function EnteryUserLogin() { var nRet; if(navigator.appName=='Netscape') { nRet=event.which; } else { nRet=event.keyCode; } if(nRet==13) { loginuser(); } }