<!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对话框</title><base target="_blank" />
<link href="http://files.cnblogs.com/files/caidupingblogs/normalize.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="http://files.cnblogs.com/files/caidupingblogs/animate.min.css">
<link rel="stylesheet" href="http://files.cnblogs.com/files/caidupingblogs/jquery.gDialog.css">
<style>
button {
border: ;
} .container {
margin: 50px auto;
max-width: 728px;
text-align: center;
font-family: Arial;
} .btn {
background-color: #00B2EE;
color: #;
padding: 20px;
margin: 10px 30px;
border-radius: 5px;
border-bottom: 3px solid;
}
</style> </head> <body>
<div class="container">
<button class="btn demo-1">Alert Dialog</button>
<button class="btn demo-2">Prompt Dialog</button>
<button class="btn demo-3">Prompt Dialog</button>
</div> <script type="text/javascript" src="http://files.cnblogs.com/files/caidupingblogs/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="http://files.cnblogs.com/files/caidupingblogs/jquery.gDialog.js"></script>
<script type="text/javascript">
$('.demo-1').click(function(){
$.gDialog.alert("http://www.cnblogs.com/caidupingblogs/", {
title: "Alert对话框",
animateIn: "bounceIn",
animateOut: "bounceOut"
});
});
$('.demo-2').click(function(){
$.gDialog.prompt("Your website", "http://www.cnblogs.com/caidupingblogs/", {
title: "Prompt对话框",
required: true,
animateIn : "rollIn",
animateOut: "rollOut"
});
});
$('.demo-3').click(function(){
$.gDialog.confirm("http://www.cnblogs.com/caidupingblogs/", {
title: "Confirm对话框",
animateIn : "bounceInDown",
animateOut: "bounceOutUp"
});
});
</script>
</body>
</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对话框</title><base target="_blank" />
<link href="http://files.cnblogs.com/files/caidupingblogs/normalize.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="http://files.cnblogs.com/files/caidupingblogs/animate.min.css">
<link rel="stylesheet" href="http://files.cnblogs.com/files/caidupingblogs/jquery.gDialog.css">
<style>
button {
border: 0;
}

.container {
margin: 50px auto;
max-width: 728px;
text-align: center;
font-family: Arial;
}

.btn {
background-color: #00B2EE;
color: #000000;
padding: 20px;
margin: 10px 30px;
border-radius: 5px;
border-bottom: 3px solid;
}
</style>

</head>

<body>
<div class="container">
<button class="btn demo-1">Alert Dialog</button>
<button class="btn demo-2">Prompt Dialog</button>
<button class="btn demo-3">Prompt Dialog</button>
</div>

<script type="text/javascript" src="http://files.cnblogs.com/files/caidupingblogs/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="http://files.cnblogs.com/files/caidupingblogs/jquery.gDialog.js"></script>
<script type="text/javascript">
$('.demo-1').click(function(){
$.gDialog.alert("http://www.cnblogs.com/caidupingblogs/", {
title: "Alert对话框",
animateIn: "bounceIn",
animateOut: "bounceOut"
});
});
$('.demo-2').click(function(){
$.gDialog.prompt("Your website", "http://www.cnblogs.com/caidupingblogs/", {
title: "Prompt对话框",
required: true,
animateIn : "rollIn",
animateOut: "rollOut"
});
});
$('.demo-3').click(function(){
$.gDialog.confirm("http://www.cnblogs.com/caidupingblogs/", {
title: "Confirm对话框",
animateIn : "bounceInDown",
animateOut: "bounceOutUp"
});
});
</script>
</body>

jQuery之对话框的更多相关文章

  1. jQuery cxDialog 对话框

    cxDialog 是基于 jQuery 的对话框插件,支持自定义外观样式,同时兼容 Zepto,方便在移动端使用. 版本: jQuery v1.7+ | Zepto v1.0+ jQuery cxDi ...

  2. jQuery UI 对话框(Dialog) - 模态表单

    <!doctype html><html lang="en"><head> <meta charset="utf-8" ...

  3. 15款基于 jQuery模态对话框

    在数字世界的竞争已大大增加.这就是为什么要确保网络设计的各个方面都是一流的,这是很重要的.从布局到一些非常小的东西,比如对话框,每一件都需要设计得很好.对话框通常被忽视,但它们可能对访问者有很大的影响 ...

  4. jquery自定义对话框alert、confirm和prompt

    jQuery Alert Dialogs,又一个基于jQuery的提示框插件,主要包括Alert.Confirm.prompt这三种,还有一个高级范例,可以在提示框内嵌入HTML语言,可以自定义风格样 ...

  5. 解决jQuery UI 对话框兼容性问题

    默认情况下使用jQuery UI的对话框,在Chrome浏览器是没问题的,但是在IE里却会显示对话框,用户体验非常不好.改变一下div的属性即可. 原本是这样: <div id="di ...

  6. 使用CSS和jQuery实现对话框

    因为项目中要显示一些对话框,但用alert显得太丑,后从网上找了一些插件,但有觉得不好用,因此自己试用CSS和jQuery写了一个对话框,代码如下: <!DOCTYPE html> < ...

  7. 炫酷JQUERY自定义对话框插件JDIALOG_JDIALOG弹出对话框和确认对话框插件

    多种类型自定义对话框插件jDialog是一款基于jquery实现的轻量级多种类型的自定义对话框插件 在项目开发中.一般会美化 alert(); 的样式.那么今天我就和大家分享一款非常炫的插件 先来看一 ...

  8. jQuery手机对话框插件

    最近,公司一直在做微网站之类的,一直在看别的微网站,发现一些对话框的样式很不错,所以自己就动手把样式剥离出来写成一个简单的插件,方便其他项目中使用到.废话不多说,上插件源码: /* *jQuery简单 ...

  9. jquery 模态对话框传值,删除,新增表格行

    个人的练习代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...

随机推荐

  1. MongoDB学习笔记(一) MongoDB介绍及安装

    转自:http://database.51cto.com/art/201103/247882.htm http://baike.baidu.com/link?url=b6B3dVSCnQauCX-Ep ...

  2. windows下实现微秒级的延时

    windowsintegeriostream汇编嵌入式任务 最近正在做一个嵌入式系统,是基于windows ce的,外接硬件的时序要微秒级的延时.1.微秒级的延时肯定不能基于消息(SetTimer函数 ...

  3. CSS关键字

    1.initial initial 关键字用于设置 CSS 属性为它的默认值. initial 关键字可用于任何 HTML 元素上的任何 CSS 属性. 版本: CSS3 JavaScript 语法: ...

  4. iOS开发-Core Location和Map Kit

    一.Core Location确定物理位置 利用以下3种技术: 1.GPS(最精确的) 2.蜂窝基站ID定位(cell ID Location) 3.WPS(Wi-Fi Positioning Ser ...

  5. 【SQL】SQL2012 导入导出报错,未在计算机上注册...

    导出时报错: 如图: 解决方法:下载插件: 下载地址:http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463 ...

  6. Parallax Occlusion Mapping

    如上图,本来是采样original texture coordinates点的颜色,其实却采样了correcter texture coordinates点的颜色. 而且会随着视线的不同看到凹凸程度变 ...

  7. java连接数据库的解决方法大全(mysql)

    解决方法一:(最重要的一种方法) 你看下my.ini,有无  [mysql] default-character-set=utf8 [client]  default-character-set=ut ...

  8. javascript常见编程模式举例

    近期买到手了一本<javascript框架设计>,具体介绍开发js框架所用到的知识.初读一点,乐帝脆弱的理论修养就暴露无遗了,所以专门加强理论修养,重看javascript编程模式的举例. ...

  9. gcc中不同namespace中同名class冲突时

    正常情况下,编译器都会报错,提示你有两个候选类,让你明确的选择一个. 比如我的情况,我自己设计了一个类Message, 然后在某个文件里面引用了它.但是我的文件中又引入了mongodb的头文件,非常不 ...

  10. mysqldump原理1