Code Monkey home page Code Monkey logo

reveal-modal's Introduction

reveal-Modal

this is reveal-modal #模态窗口

可以兼容到IE6,其中包括了多种类型,比如 两个嵌套 、单个、一个按钮和两个按钮、提示框、警示框

#####参考demo地址:http://192.168.14.97:8080/acc/plugin/reveal-Modal/index.html ##样例 ####1、使用步骤 ####(1)导入样式文件

<link href="style/popup.css" rel="stylesheet" type="text/css" />

####(2)导入外部JS文件

<script src="javascript/jquery-1.9.1.min.js"></script>
<script src="javascript/reveal-model.js"></script>

####(3)页面使用代码

<a href="#" reveal-model-id="showbox1" class="click-block">点击按钮弹出模态窗口(底部2个按钮)</a>

<div class="box-content large noClick" id="showbox1" style="display: block; left: 248.5px; top: -111.55px;">
    <h2>请选1择<a href="#" class="close-reveal-modal">×</a></h2>
    <div class="mainlist">
        <form data-abide="">
            <div class="modal_wrap">
              内容
            </div>
          </form>
        <div class="btn-grop clearfix"> <a class="reveal-button right sure">提交</a>
        <a class="reveal-button close-reveal-modal right margin-r" aria-label="Close">取消</a>
        </div>
    </div>
</div>

####(4)方法和API #####(1)方法

//模态窗口配置
<script type="text/javascript">
    $(document).ready(function(){
        $('#showbox1').mask().noClick();//配置对象#showbox1遮罩层不能点击
    });
</script>

//提示框和警示框
$('.success-click').click(function(){
    loading("success","发布成功");
});
$('.alert-click').click(function(){
    loading("alert","发布的内容不能为空");
});

#####API

#参数说明:

loading("success","发布成功");//提示框路口
loading("alert","发布的内容不能为空");//警示框路口

#更新日志

reveal-modal's People

Contributors

skysoga avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.