a.php页面中,
<form action="" name="" method="post">
<input width="10"></input>
<br>
<input winth="10"></input>
<br>
<input type="submit" name="提交"></input>
</form>有个提交按纽正提交页面时,
需:弹出一个层,层中为用户名和密码输入,当用户名和密码输入正确时,
a.php页面中的信息才可正常提交出去,
现问:1怎么弹出这个登录信息的层,
2弹出的层中假设用户名为u 密码为p,
怎么验正用户名信息并把a.php页面中的信息提交出去
thanks
<form action="" name="" method="post">
<input width="10"></input>
<br>
<input winth="10"></input>
<br>
<input type="submit" name="提交"></input>
</form>有个提交按纽正提交页面时,
需:弹出一个层,层中为用户名和密码输入,当用户名和密码输入正确时,
a.php页面中的信息才可正常提交出去,
现问:1怎么弹出这个登录信息的层,
2弹出的层中假设用户名为u 密码为p,
怎么验正用户名信息并把a.php页面中的信息提交出去
thanks
show:function(obj){
var m = "mask";
//mask遮罩层
var newMask = document.createElement("div");
newMask.id = m;
newMask.style.position = "absolute";
newMask.style.zIndex = "1";
_scrollWidth = Math.max(document.body.scrollWidth,document.documentElement.scrollWidth);
_scrollHeight = Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);
newMask.style.width = _scrollWidth + "px";
newMask.style.height = _scrollHeight + "px";
newMask.style.top = "0px";
newMask.style.left = "0px";
newMask.style.background = "#33393C";
newMask.style.filter = "alpha(opacity=20)";
newMask.style.opacity = "0.40";
document.body.appendChild(newMask);
var popDiv = getEl(obj);
var popWidth = parseInt(popDiv.style.width,10);
var popHeight = parseInt(popDiv.style.height,10);
popDiv.style.top = (document.body.scrollTop + document.body.clientHeight/2 - popHeight/2) + "px";
popDiv.style.left = (document.body.scrollLeft + document.body.clientWidth/2 - popWidth/2) + "px";
popDiv.style.display="block";
},
hide:function(obj){
getEl(obj).style.display="none";
if(getEl("mask")){document.body.removeChild(getEl("mask"));}
}
} if(!mobile_check())
{
document.getElementById("telError").innerHTML="<span style='color:red'>此号码不可用</span>";
return false;
}
var b = checkLogin();
if(!b){
popWin.show("login_pop");
return false;
}