login.html
function request(id,url){
oScript = document.getElementById(id);
var head = document.getElementsByTagName("head").item 0); {
head.removeChild(oScript);
}
oScript = ent.createElement("script"); oScript.setAttribute("type","text/javascript");
oScript.setAttribute("語言"," script"); ;
回傳oScript;
}
function userLogin(){
var password=document.getElementById('passwords').value> Alert(使用者名稱「--」密碼);
var url='http://127.0.0.1:8080/EasyCMS/login.jsp?name='encodeURI(使用者名稱)'&password='encodeURI (密碼) '&s=' (new Date()).getTime();
//alert("url=" url);
var login=request("loginScript",url);
}
函數 myloginState(狀態){
alert("ret:" state);
if (state==0)
{
}
}
複製程式碼