<form id="form1" method="post" action="zhucepro.asp教程">
<div style="padding:10px 0; margin:0 10px;" id="wrap">
<table width="100%" cellpadding="2" cellspacing="0">
<tr>
<td width="111" align="right"><h5>基本信息</h5></td>
<td width="22"> </td>
<td> </td>
</tr>
<tr>
<td width="111" align="right">用户名:</td>
<td width="22"> </td>
<td><input name="admin_name_cn" type="text" class="input1" id="admin_name_cn" value="" size="40" /> <span style="color:#f36">*</span> </td>
</tr>
<tr>
<td width="111" align="right">登录名:</td>
<td width="22"> </td>
<td><input name="admin" type="text" class="input1" id="admin" value="" size="40" /> <span style="color:#f36">*</span> </td>
</tr>
<tr>
<td width="111" align="right">密码:</td>
<td width="22"> </td>
<td><input name="pass" type="password" class="input1" id="pass" value="" size="40" />
<span style="color:#f36">*</span></td>
</tr>
</table>
<table width="100%" cellpadding="2" cellspacing="0" style="display:none">
<tr>
<td align="center" height="50"><h5 style="display:none">提交</h5>必填项已经填写必,现在可以提交表单了。</td>
</tr>
</table>
</div>
</form>
这里是网页特效代码
<script>
function open20()
{
var diag = new dialog();
diag.modal = false;
diag.width = 600;
diag.height = 300;
diag.title = "用户注册";
diag.url = "zhuce.asp"; //这里调用了要录入的界面-----------
diag.okevent = function(){
if(diag.innerdoc.getelementbyid('admin_name_cn').value==""){
alert("请输入用户名!");
diag.innerdoc.getelementbyid('admin_name_cn').focus();
return false;
}
if(!confirm("确认要填写的信息是否正确?")){
return;
}else{
diag.innerdoc.getelementbyid('form1').submit();
diag.submited=true;
}};
diag.messagetitle = "注册说明";
diag.message = '请详细填写注册信息,注册完毕后等待管理员批准';
diag.show();
}
</script>其它方法
diag.show();
window.location.reload()为diag的closeevent事件指定方法。
diag.closeevent =function(){
window.location.reload();
}
如果没有关闭事件 使用addeventlistener添加一个关闭事件。