国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

jquery實現點擊彈出可放大居中及關閉的對話框(附demo源碼下載)

2019-11-20 10:07:06
字體:
來源:轉載
供稿:網友

本文實例講述了jquery點擊彈出可放大居中關閉對話框。分享給大家供大家參考,具體如下:

運行效果截圖如下:

具體代碼如下:

<!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點擊彈出可放大居中關閉對話框</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切換特效與技巧總結》、《jQuery拖拽特效與技巧總結》、《jQuery擴展技巧總結》、《jQuery常見經典特效匯總》、《jQuery動畫與特效用法總結》、《jquery選擇器用法總結》及《jQuery常用插件及用法總結

希望本文所述對大家jQuery程序設計有所幫助。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 苗栗市| 东方市| 武宣县| 瓮安县| 东城区| 甘孜| 武宣县| 柳河县| 华池县| 崇明县| 昭通市| 苏尼特右旗| 松桃| 宾川县| 靖边县| 旬阳县| 宜城市| 仁寿县| 扎兰屯市| 融水| 太康县| 乌苏市| 定远县| 鄂伦春自治旗| 两当县| 锡林郭勒盟| 邛崃市| 百色市| 东乡族自治县| 巧家县| 彩票| 通辽市| 富民县| 崇阳县| 天峻县| 卓尼县| 沛县| 远安县| 米易县| 罗田县| 吉安市|