素材牛VIP会员

jQuery扁平对话框弹出层插件gDialog

 所属分类:网页特效-悬浮层/弹出层

 浏览:1986次  评论:0次  更新时间:2016-09-22
牛币素材VIP可免积分下载
jQuery扁平对话框弹出层插件gDialog兼容IE9
积分说明:注册即送10牛币,每日签到可获得5牛币,成为VIP会员可永久免牛币下载!   充值积分   充值会员   更多说明»
素材描述:最适用于移动端,并平滑兼容IE浏览器。

详细介绍

使用方法:

引入CSS样式文件

<link href="src/normalize.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="src/animate.min.css">
<link rel="stylesheet" href="src/jquery.gDialog.css">

引入jQuery库文件、插件JS文件

<script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<script src="src/jquery.gDialog.js"></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 Dialog Box",
    animateIn: "bounceIn",
    animateOut: "bounceOut"
  });
});  
$('.demo-2').click(function(){
  $.gDialog.prompt("DEMO", "www.jq22.com", {
    title: "Prompt Dialog Box",
    required: true,
	animateIn : "rollIn",
    animateOut: "rollOut"
  });
}); 
$('.demo-3').click(function(){
  $.gDialog.confirm("Are You Sure?", {
    title: "Confirm Dialog Box",
	animateIn : "bounceInDown",
    animateOut: "bounceOutUp"
  });
});

HTML结构(调用)

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

相关素材 - 悬浮层/弹出层

讨论这个素材(0)回答他人问题或分享使用心得会奖励牛币

〒_〒 居然一个评论都没有……

 文明上网,理性发言!   😉 阿里云幸运券,戳我领取
我的牛币余额:0
所需牛币:1 开始下载

牛币获取:签到、评论、充值    » 在线充值(10牛币=1元)