zoukankan      html  css  js  c++  java
  • jQuery之对话框

    <!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: 0;
    }
    
    .container {
    margin: 50px auto;
    max- 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>
    </html>

    不努力,还要青春干什么?
  • 相关阅读:
    js post 异步请求
    Android 实现文件上传功能(upload)
    js 金额文本框实现代码
    纯CSS画的基本图形(矩形、圆形、三角形、多边形、爱心、八卦等)
    NBearV2视频教学系列总索引,欢迎多提意见和建议[09/21更新至IoC篇]
    1.2 实体实例化及使用自定义实体[发布时间:9/6]
    NBear视频 4.1 基于NBear.IoC的企业级系统构架[发布时间:9/21]
    2.1 基于NBear.Data的实体持久化[发布时间:9/10]
    NBear案例源码 简易AJAX留言板 [Updated 10/31 Powered by NBear V3.0.0 preview]
    全面解析ASP.NET2.0下的URL重写
  • 原文地址:https://www.cnblogs.com/caidupingblogs/p/5411859.html
Copyright © 2011-2022 走看看