麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 編程 > JavaScript > 正文

用jquery中插件dialog實現(xiàn)彈框效果實例代碼

2019-11-20 21:41:11
字體:
供稿:網(wǎng)友

復(fù)制代碼 代碼如下:

<!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>彈框遮罩效果</title>
<style type="text/css">
#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
</style>
<script type="text/javascript" language="javascript" src="jquery-1.7.1.min.js">
</script>
<script type="text/javascript" language="javascript" src="jquery-ui-1.8.18.custom.min.js">
</script>
<link rel="stylesheet" href="ui-lightness/jquery-ui-1.8.18.custom.css"/>
<script type="text/javascript" language="javascript">
$(function(){
    $("#dialog").dialog({
        autoOpen:false,
        buttons:[{
            text:"ok",
            click:function(){
                $("#dialog").dialog("close");
                }
            },
            {
            text:"cancal",
            click:function(){
                $("#dialog").dialog("close");
                }
            }
            ],
            position:"top",//彈出位置
            width:600, //窗口寬度
            height:200,
            drag:function(){
                alert("你干拽我試試");
                }

        
        });
    $("#dialog_link").click(function(){
        $("#dialog").dialog("open");
        });
    })
</script>
</head>

<body>
<a href="#" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>Open Dialog</a>
<!--對話框$("#dialog").dialog()他就是一個對話框,在頁面中就會隱藏-->
<div id="dialog" title="Hi" style="display:none">
hello
</div>
</body>
</html>

復(fù)制代碼 代碼如下:

<!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>彈框遮罩效果</title>
<style type="text/css">
#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
</style>
<script type="text/javascript" language="javascript" src="jquery-1.7.1.min.js">
</script>
<script type="text/javascript" language="javascript" src="jquery-ui-1.8.18.custom.min.js">
</script>
<link rel="stylesheet" href="ui-lightness/jquery-ui-1.8.18.custom.css"/>
<script type="text/javascript" language="javascript">
$(function(){
 $("#dialog").dialog({
  autoOpen:false,
  buttons:[{
   text:"ok",
   click:function(){
    $("#dialog").dialog("close");
    }
   },
   {
   text:"cancal",
   click:function(){
    $("#dialog").dialog("close");
    }
   }
   ],
   position:"top",//彈出位置
   width:600, //窗口寬度
   height:200,
   drag:function(){
    alert("你干拽我試試");
    }

  });
 $("#dialog_link").click(function(){
  $("#dialog").dialog("open");
  });
 })
</script>
</head>

<body>
<a href="#" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>Open Dialog</a>
<!--對話框$("#dialog").dialog()他就是一個對話框,在頁面中就會隱藏-->
<div id="dialog" title="Hi" style="display:none">
hello
</div>
</body>
</html>

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 欧洲成人一区二区 | 欧美视频国产精品 | 免费日本一区二区 | 久久国语对白 | 国产免费一级淫片a级中文 99国产精品自拍 | 国产免费观看一区二区三区 | 精品欧美一区二区精品久久 | 一区二区三区日韩在线观看 | 91精品福利视频 | 亚洲成人自拍电影 | 久久亚洲春色中文字幕久久 | 特级黄一级播放 | 午夜精品影院 | 国产精品视频在 | 国产外围在线 | 羞羞的动漫在线观看 | 欧美18—19sex性护士中国 | 国产精品一区二区日韩 | 欧美日韩一 | 国产精品刺激对白麻豆99 | 成人在线视频免费 | 91成人亚洲 | 手机国产乱子伦精品视频 | 国产精品久久久久久模特 | 久草在线视频网 | 色播一区 | 成人毛片在线免费观看 | 精品一区二区亚洲 | 叶子楣成人爽a毛片免费啪啪 | 成人激情在线观看 | 男女无套免费视频 | 国产九色在线观看 | 99国产精成人午夜视频一区二区 | 国产一区网址 | 国产91免费看 | 成人午夜免费在线视频 | 日韩精品无码一区二区三区 | 欧美www| www日韩在线| 国产在线精品一区二区三区不卡 | 综合国产在线 |