jquery实现点击弹出可放大居中及关闭的对话框(附
网络编程 2021-07-04 21:04www.168986.cn编程入门
这篇文章主要介绍了jquery实现点击弹出可放大居中及关闭的对话框,具有可拖动、放大、居中及关闭等功能,提供了2种对话框模式供读者选择,并附带demo源码供读者下载参考,需要的朋友可以参考下
本文实例讲述了jquery点击弹出可放大居中关闭对话框。分享给大家供大家参考,具体如下:
运行效果截图如下:
具体代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://.w3./TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://.w3./1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jquery点击弹出可放大居中关闭对话框</title> <link rel="stylesheet" type="text/css" href="css/jqpopup.css"/> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="js/jquery.bgiframe.min.js"></script> <script type="text/javascript" src="js/jqDnR.min.js"></script> <script type="text/javascript" src="js/jquery.jqpopup.min.js"></script> </head> <body> <div id="sampleformdiv" style="display:none" title="1st jQpopup box"> <div class="annotationName">描述</div> <div class="annotation">点击关闭该弹出窗口</div> </div> <div id="sampleformdiv1" style="display:none" title="模块选择器"> <form method="post" id="butt" name="butt" action=""> <input type="button" value="确定"/> <input type="button" value="取消"/> </form> <div class="sele"> <select class="u"> <option value="CMS">CMS</option> <option value="General" selected="">General</option> <option value="Else">Else</option> </select> <select class="u"> <option value="CMS">CMS</option> <option value="General" selected="">General</option> <option value="Else">Else</option> </select> <select class="u"> <option value="CMS">CMS</option> <option value="General" selected="">General</option> <option value="Else">Else</option> </select> </div> <table border="1" cellpadding="2" cellspacing="2"> <tr> <td></td> <td>名称</td> <td>标签</td> <td>前缀</td> <td>...</td> </tr> <tr> <td><input type="radio" value="radio" name="r1" id="r1"></td> <td>分类控件</td> <td>2</td> <td>re</td> <td>222</td> </tr> <tr> <td><input type="radio" value="radio" name="r2" id="r2"></td> <td>分类控件</td> <td>2</td> <td>re</td> <td>222</td> </tr> <tr> <td><input type="radio" value="radio" name="r3" id="r3"></td> <td>分类控件</td> <td>2</td> <td>re</td> <td>222</td> </tr> <tr> <td><input type="radio" value="radio" name="r4" id="r4"></td> <td>分类控件</td> <td>2</td> <td>re</td> <td>222</td> </tr> <tr> <td><input type="radio" value="radio" name="r5" id="r5"></td> <td>分类控件</td> <td>2</td> <td>re</td> <td>222</td> </tr> </table> </div> <p><input type="button" class="stdbtn" id="open_btn" value="Click 1"/></p><br/> <p><input type="button" class="stdbtn" id="open_btn1" value="Click 2"/></p><br/> <script type="text/javascript"> $(document).ready(function(){ $("#open_btn").click(function(){ $("#sampleformdiv").jqpopup_open(this.id); }); $("#open_btn1").click(function(){ $("#sampleformdiv1").jqpopup_open(this.id); }); }); </script> <div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';"> <p>适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗.</p> </div> </body> </html>
完整实例代码点击此处。
更多关于jQuery相关内容感兴趣的读者可查看本站专题:《》、《》、《》、《》、《》、《》及《》
希望本文所述对大家jQuery程序设计有所帮助。
上一篇:js实现的简单图片浮动效果完整实例
下一篇:jQuery选择器基础入门教程
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程