var dict_host = 'http://www.ssol.net/ask/'; var dict_layer; var dict_iframe; var dict_x; var dict_y; var h = ''; h += ''; h += '
'; h += ''; h += ''; h += ''; h+= '' h += '
用户名:
密  码:
 
'; h += ''; document.write(h); dict_layer = document.getElementById('dict_layer'); dict_iframe = document.getElementById('dictFrame'); function mmm() { if(window.event==null){ dict_x=(document.documentElement.scrollLeft+ document.body.scrollLeft+screen.width)/2-100; dict_y =(document.documentElement.scrollTop+document.body.scrollTop)/2+100; }else{ dict_x=(window.event.clientX+document.documentElement.scrollLeft+ document.body.scrollLeft)-130; dict_y =(window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop); if(dict_x<=1){dict_x=window.event.clientX+2}; if((dict_y+200)>(document.body.scrollTop+document.body.scrollHeight)){dict_y=dict_y-200} } dict_layer.style.left=dict_x; dict_layer.style.top=dict_y; dict_layer.style.display="block"; } function showinfonull(id) { GetId(id).innerHTML=''; } function dictClose() { dict_layer.style.display="none"; } function gored() { window.open('http://www.ssol.net/reg/reg.asp'); } function loginin() { if (askloginpost.username.value=='') { alert("提示:\n\t请输入你的用户名!用户名不能为空"); return false } if (askloginpost.password.value==''){ alert("提示:\n\t请输入你的密码!密码不能为空"); return false } ShowChild("showinfo",askloginpost.username.value,askloginpost.password.value) } function CreateXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else { xmlHttp = new XMLHttpRequest(); } } function ShowChild(id,username,password) { CreateXMLHttpRequest(); if(xmlHttp) { xmlHttp.open('POST','http://www.ssol.net/ajax/userlogin.asp',true); xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); var SendData='username='+escape(username)+'&password='+escape(password)+'&keyid=8963ac7a962471c5'; xmlHttp.send(SendData); xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { if(xmlHttp.status==200) { if (xmlHttp.responseText=='ok') { GetId('mylogin').innerHTML='恭喜,你已经成功了登陆爱问系统!'; window.location.reload(); }else{ GetId(id).innerHTML = xmlHttp.responseText; } } else { GetId(id).innerHTML='出错:'+xmlHttp.statusText; } } else { GetId(id).innerHTML="正在提交数据..."; } } } else { GetId(id).innerHTML='抱歉,您的浏览器不支持XMLHttpRequest,请使用IE6以上版本!'; } } function GetId(id) { return document.getElementById(id); }