星空网 > 软件开发 > Java

炫酷的jQuery对话框插gDialog

js有alert,prompt和confirm对话框,不过不是很美体验也不是很好,用jQuery也能实现,

体验效果:http://hovertree.com/texiao/jquery/34/

代码如下:

<!doctype html><html><head>  <meta charset="utf-8">  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">  <meta name="viewport" content="width=device-width, initial-scale=1">  <title>炫酷的jQuery对话框插件 gDialog - 何问起</title><base target="_blank" />  <link href="http://hovertree.com/texiao/jquery/34/css/normalize.css" rel="stylesheet" type="text/css">  <link rel="stylesheet" href="http://hovertree.com/texiao/jquery/34/css/animate.min.css">  <link rel="stylesheet" href="http://hovertree.com/texiao/jquery/34/css/jquery.gDialog.css">  <style>    button {      border: 0;    }    .container {      margin: 50px auto;      max-width: 728px;      text-align: center;      font-family: Arial;    }    .btn {      background-color: #ED5565;      color: #fff;      padding: 20px;      margin: 10px 30px;      border-radius: 5px;      border-bottom: 3px solid #DA4453;    }a{color:darkslateblue;}  </style></head><body>  <div style="width:310px;margin:0px auto;">  <a href="http://hovertree.com/">首页</a>   <a href="http://hovertree.com/texiao/">特效</a>  <a href="http://hovertree.com/h/bjaf/4132lshc.htm">原文</a></div>  <div class="container">    <h1>jQuery gDialog Plugin Exampels</h1>    <button class="btn demo-1">Alert对话框</button>    <button class="btn demo-2">Prompt对话框</button>    <button class="btn demo-3">Prompt对话框</button>  </div>    <script src='/images/loading.gif' data-original="http://hovertree.com/ziyuan/jquery/jquery-2.2.1.min.js"></script>    <script src='/images/loading.gif' data-original="http://hovertree.com/texiao/jquery/34/js/jquery.gDialog.js"></script>    <script>      $('.demo-1').click(function () {        $.gDialog.alert("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse libero erat, scelerisque sit amet dolor nec, euismod feugiat massa.", {          title: "Alert对话框 by 何问起",          animateIn: "bounceIn",          animateOut: "bounceOut"        });      });      $('.demo-2').click(function () {        $.gDialog.prompt("Your website", "hovertree.com", {          title: "Prompt对话框 by 何问起",          required: true,          animateIn: "rollIn",          animateOut: "rollOut"        });      });      $('.demo-3').click(function () {        $.gDialog.confirm("Are You Sure?", {          title: "Confirm对话框 by 何问起",          animateIn: "bounceInDown",          animateOut: "bounceOutUp"        });      });    </script></body></html>

js题目:http://hovertree.com/tiku/bjaf/k44bgls5.htm

web前端汇总:http://www.cnblogs.com/jihua/p/webfront.html




原标题:炫酷的jQuery对话框插gDialog

关键词:jquery

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

小心这些坑:https://www.goluckyvip.com/tag/3045.html
电子商务订单管理:https://www.goluckyvip.com/tag/30450.html
电子商务海外仓:https://www.goluckyvip.com/tag/30451.html
电子商务和跨境电商:https://www.goluckyvip.com/tag/30452.html
电子商务后台管理:https://www.goluckyvip.com/tag/30453.html
电子商务跨境电商:https://www.goluckyvip.com/tag/30454.html
川藏线自驾游要怎么走才比较划算呢?:https://www.vstour.cn/a/411240.html
去日本入住酒店,东西随意用却有一个特殊“要:https://www.vstour.cn/a/411241.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流