具体什么原因还没查清楚。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<title>朋友网</title>
<style>
/*样式名不可以修改*/
.txt-hidden {
position:absolute!important;
height:30px;width:60px;
}
/*不可以修改*/
.login-form label {
display:block;
}
</style>
</head>
<body>
<div id="login" class="main">
<div id="g_list">
<form class="login-form" name="loginform" onSubmit=" return beforeSubmit();" method="post" autocomplete="off">
<div id="web_login">
<label id="g_p"> <span class="txt-hidden"></span>
<input id="p" type="password" tabindex="2" value="" maxlength="16" name="p">
</label>
</div>
<p class="cmds">
<button id="login_btn" type="submit" class="btn-login" style="display:block;"><span class="txt-hidden">登录</span></button>
</p>
</form>
</div>
</div>
<script>
var $ = function(id){
return document.getElementById(id);
}
var loadScript=function (src, callback) {
var tag = document.createElement("script");
tag.charset = 'UTF-8' ;
tag.onload = tag.onreadystatechange = function() {
if ( !this.readyState ||this.readyState === "loaded" || this.readyState === "complete") {
callback?callback():"";
tag.onload = tag.onreadystatechange = null;
}
}
tag.src = src;
document.getElementsByTagName("head")[0].appendChild(tag);
}
function ptuiCB(){
$("p").value = "";
$("web_login").style.display = 'none';
return;
}
function beforeSubmit(){
loadScript("xxxx");
return false;
}
//xxx返回内容如下
//ptuiCB();
</script>
</body>
</html>