jquery彈出遮掩層效果【附實例代碼】
更新時間:2016年04月28日 15:43:53 投稿:jingxian
下面小編就為大家?guī)硪黄猨query彈出遮掩層效果【附實例代碼】。小編覺得挺不錯的,現(xià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> <title>tipswindown</title> <link href="css/tipswindown.css" rel="stylesheet" type="text/css" /> <script src="js/jquery-1.8.js" type="text/javascript"></script> <script src="js/tipswindown.js" type="text/javascript"></script> <style type="text/css"> #main{width:300px;margin:50px auto;font-family: Arial, Calibri;} #main .btn {width:150px;height:30px;line-height:30px;font-size:14px; vertical-align:middle; color: #333333; font-weight:bold; text-decoration:none; display:block; text-align:center;background: #CCC;} #main .btn:hover{vertical-align:middle; color: #fff; font-weight:bold; text-decoration:none;display:block; text-align:center;background: #333;} </style> <script type="text/javascript"> $(function () { $("#DialogShow").click(function () { tipsWindown("CnBlogs", "id:dialog", "450", "200", "true", "", "true", "id"); }); }) function Ok() { window.location.; } function Cancel() { $("#windownbg").remove(); $("#windown-box").fadeOut("1000", function () { $(this).remove(); }); } </script> </head> <body> <div id="main"> <a href="javascript:void(0);" class="btn" id="DialogShow">DialogShow</a> </div> <div id="dialog" style="display:none";> <div class="dialogtext"> <p>Please click on the ok button to go the http://www.cnblogs.com/ website and you should just wait. </p> <p>If you are accessing this page by mistake please click on the cancel link.</p> </div> <div class="dislogbtn"> <a href="javascript:void(0);" class="btn" id="Ok" onclick="Ok()">Ok</a> <a href="javascript:void(0);" class="btn" id="Cancel" onclick="Cancel()">Cancel</a> </div> </div> </body> </html>
以上這篇jquery彈出遮掩層效果【附實例代碼】就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。
相關文章
Easyui Datagrid自定義按鈕列(最后面的操作列)
做項目的時候因為需求,要在表格的最后添加一列操作列,easyUI貌似沒有提供這種功能,下面我們來自定義按鈕列,具體實現(xiàn)代碼,大家參考下本文吧2017-07-07JQuery實現(xiàn)的在新窗口打開鏈接的方法小結(jié)
jQuery 實現(xiàn)在新窗口中打開鏈接方法,收集了幾個,大家可以根據(jù)需要選擇使用。2010-04-04jquery選擇器中的空格與大于號>、加號+與波浪號~的區(qū)別介紹
這篇文章主要介紹了jquery選擇器中的空格與大于號>、加號+與波浪號~的區(qū)別介紹的相關資料,需要的朋友可以參考下2016-06-06checkbox全選/取消全選以及checkbox遍歷jQuery實現(xiàn)代碼
checkbox全選/取消全選以及checkbox遍歷jQuery實現(xiàn)代碼2009-12-12jquery實現(xiàn)手機發(fā)送驗證碼的倒計時代碼
這篇文章主要介紹了jquery實現(xiàn)手機發(fā)送驗證碼的倒計時代碼,需要的朋友可以參考下2014-02-02jQuery實現(xiàn)的fixedMenu下拉菜單效果代碼
這篇文章主要介紹了jQuery實現(xiàn)的fixedMenu下拉菜單效果代碼,通過自定義fixedMenu方法實現(xiàn)點擊下拉菜單效果,具有一定參考借鑒價值,需要的朋友可以參考下2015-08-08