利用AJAX实现实现web页面的模态对话框
2009-01-19 23:40
330 查看
模态对话框是,当弹出对话框时后面的内容无法操作。本次利用ajax制作的模太对话框并不是浏览器提供的模太对话框,而是通过层和ajax技术实现的虚拟的模太对话框.
样式表,css代码:
Code
<table width="100%" height="587" border="0">
<tr>
<td height="138" colspan="3">
<div id="Layer1">
</div>
<div id="Layer2">
</div>
<td>
<tr>
<tr>
<td width="10%" height="137"><div align="center"> </div></td>
<td width="77%"><div class="img_border"><img class="img_border" src="web/images/first_bg.jpg" width="740" height="135" border=0></div></td>
<td width="13%"> </td>
<tr>
<tr>
<td height="28"> </td>
<td height="28"><html:form method="POST" action="/tryAjaxAction">
<input type="hidden" name="method" />
<div id="serverResponse">
</div>
<div align="center">
<SPAN class=col777777><bean:message key="userName"></bean:message></SPAN>
<html:text name="loginForm" property="email"></html:text>
<SPAN class=col777777><bean:message key="password"></bean:message></SPAN>
<html:password name="loginForm" property="password"></html:password>
<html:button property="button" value="提交" onclick="test()">html:button>
<a class="ab" href="#"><bean:message key="regist"></bean:message></a>|<a class="ab" onClick="forget()" href="#"><bean:message key="forgetPassword"></bean:message></a>
</div>
</html:form>
</td>
<td height="28"> </td>
</tr>
<tr>
<td height="80" colspan="3"> </td>
</tr>
<tr>
<td height="162" colspan="3"> </td>
</tr>
</table>
样式表,css代码:
Code
<table width="100%" height="587" border="0">
<tr>
<td height="138" colspan="3">
<div id="Layer1">
</div>
<div id="Layer2">
</div>
<td>
<tr>
<tr>
<td width="10%" height="137"><div align="center"> </div></td>
<td width="77%"><div class="img_border"><img class="img_border" src="web/images/first_bg.jpg" width="740" height="135" border=0></div></td>
<td width="13%"> </td>
<tr>
<tr>
<td height="28"> </td>
<td height="28"><html:form method="POST" action="/tryAjaxAction">
<input type="hidden" name="method" />
<div id="serverResponse">
</div>
<div align="center">
<SPAN class=col777777><bean:message key="userName"></bean:message></SPAN>
<html:text name="loginForm" property="email"></html:text>
<SPAN class=col777777><bean:message key="password"></bean:message></SPAN>
<html:password name="loginForm" property="password"></html:password>
<html:button property="button" value="提交" onclick="test()">html:button>
<a class="ab" href="#"><bean:message key="regist"></bean:message></a>|<a class="ab" onClick="forget()" href="#"><bean:message key="forgetPassword"></bean:message></a>
</div>
</html:form>
</td>
<td height="28"> </td>
</tr>
<tr>
<td height="80" colspan="3"> </td>
</tr>
<tr>
<td height="162" colspan="3"> </td>
</tr>
</table>
相关文章推荐
- 利用事件执行顺序,轻松实现Web页面的对话框
- 静态页中利用AJAX.NET实现无刷新页面 (一)
- 静态页中利用AJAX.NET实现无刷新页面
- 利用JSP在Web页面中实现Auth认证
- 两种WEB下的模态对话框 (asp.net或js的分别实现)
- 使用AJAX实现Web页面进度条的实例分享
- 利用ajax持续发送请求,实现web版的cmd命令执行效果
- 十二、初学.NET—利用AJAX在页面头部显示服务器当前时间,并实现倒计时功能
- 利用javascript实现web页面刷新的方法【转】
- 利用AjaxControlToolkit实现 tab+弹出对话框+弹出对话框内内容ajax方式交互
- 利用Ajax实现页面局部刷新
- 静态页中利用AJAX.NET实现无刷新页面
- 利用ajax实现页面动态修改
- 使用Ajax和jQuery实现用户友好的web页面
- 【知了堂学习笔记】利用ajax实现web中的批量删除
- 利用JQuery+Ajax实现aspx页面无刷新的动态数据绑定
- 静态页中利用AJAX.NET实现无刷新页面
- AJAX-实现WEB页面局部动态刷新
- AJAX实现web页面中级联菜单的设计
- 静态页中利用AJAX.NET实现无刷新页面