jquery實現(xiàn)點擊彈出可放大居中及關(guān)閉的對話框(附demo源碼下載)
本文實例講述了jquery點擊彈出可放大居中關(guān)閉對話框。分享給大家供大家參考,具體如下:
運行效果截圖如下:
具體代碼如下:
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jquery點擊彈出可放大居中關(guān)閉對話框</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">點擊關(guān)閉該彈出窗口</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>標(biāo)簽</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>
完整實例代碼點擊此處本站下載。
更多關(guān)于jQuery相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《jQuery切換特效與技巧總結(jié)》、《jQuery拖拽特效與技巧總結(jié)》、《jQuery擴(kuò)展技巧總結(jié)》、《jQuery常見經(jīng)典特效匯總》、《jQuery動畫與特效用法總結(jié)》、《jquery選擇器用法總結(jié)》及《jQuery常用插件及用法總結(jié)》
希望本文所述對大家jQuery程序設(shè)計有所幫助。
- jQuery代碼實現(xiàn)對話框右上角菜單帶關(guān)閉×
- 基于jQuery實現(xiàn)帶動畫效果超炫酷的彈出對話框(附源碼下載)
- jQuery實現(xiàn)時尚漂亮的彈出式對話框?qū)嵗?/a>
- jquery插件hiAlert實現(xiàn)網(wǎng)頁對話框美化
- JQuery彈出炫麗對話框的同時讓背景變灰色
- jQuery實現(xiàn)單擊按鈕遮罩彈出對話框(仿天貓的刪除對話框)
- Jquery EasyUI中彈出確認(rèn)對話框以及加載效果示例代碼
- jquery刪除提示框彈出是否刪除對話框
- jQuery Mobile的loading對話框顯示/隱藏方法分享
- JQuery制作的放大效果的popup對話框(未添加任何jquery plugin)分享
- Jquery實現(xiàn)頁面加載時彈出對話框代碼
- 6款經(jīng)典實用的jQuery小插件及源碼(對話框/提示工具等等)
- jQuery Dialog對話框事件用法實例分析
相關(guān)文章
jquery預(yù)覽圖片實現(xiàn)鼠標(biāo)放上去顯示實際大小
本文為大家介紹的這個示例為jquery實現(xiàn)的預(yù)覽圖片,當(dāng)鼠標(biāo)放上去顯示實際大小,感興趣的朋友可以學(xué)習(xí)下2014-01-01jQuery實現(xiàn)的超鏈接提示效果示例【附demo源碼下載】
這篇文章主要介紹了jQuery實現(xiàn)的超鏈接提示效果,結(jié)合實例形式對比分析了jQuery實現(xiàn)的帶有l(wèi)oading動態(tài)圖效果的提示文字以及默認(rèn)提示文字顯示效果,并附帶demo源碼供讀者下載參考,需要的朋友可以參考下2016-09-09通過jQuery源碼學(xué)習(xí)javascript(二)
昨天寫了篇通過jQuery源碼學(xué)習(xí)javascript(一),里面有一個定義對象C的方法,我早期也沒有太注意這個方面的技術(shù)細(xì)節(jié)。后來我查了一下資料,發(fā)現(xiàn)里面有很多巧的地方。今天與大家分享2012-12-12jQuery中$.ajax()和$.getJson()同步處理詳解
這篇文章主要介紹了jQuery中$.ajax()和$.getJson()同步處理詳解的相關(guān)資料,非常的細(xì)致全面,有需要的小伙伴可以參考下。2015-08-08使用jQuery.form.js/springmvc框架實現(xiàn)文件上傳功能
這篇文章主要介紹了使用jQuery.form.js/springmvc框架實現(xiàn)文件上傳功能,非常具有參考借鑒價值,感興趣的朋友一起學(xué)習(xí)吧2016-05-05當(dāng)鼠標(biāo)移動到圖片上時跟隨鼠標(biāo)顯示放大的圖片效果
當(dāng)鼠標(biāo)移動到圖片上時,跟隨鼠標(biāo)顯示放大顯示的圖片,具體效果情況截圖,另附送源碼,感興趣的朋友可以學(xué)習(xí)下哈2013-06-06jQuery EasyUI API 中文文檔 - NumberSpinner數(shù)值微調(diào)器使用介紹
jQuery EasyUI API 中文文檔 - NumberSpinner數(shù)值微調(diào)器使用,需要的朋友可以參考下。2011-10-10