首页 > 移动平台 > 详细

基于html5手机移动端对话框特效

时间:2015-11-02 18:53:57      阅读:329      评论:0      收藏:0      [点我收藏+]

html    演示地址:http://www.w2bc.com/demo/201511/2015-11-01-html5-mobile-alter-info/index.html

<center>
        <input type="button" id="success" value="成功" />
        <input type="button" id="error" value="错误" />
        <input type="button" id="load" value="正在加载" />
        <input type="button" id="tip" value="提示" />
    </center>
 
    <script type="text/javascript" src="zepto.min.js"></script>
    <script type="text/javascript" src="mdialog.js"></script>
    <script type="text/javascript">
        //成功
        $("#success").click(function () {
            new TipBox({ type: success, str: 操作成功, hasBtn: true });
        });
        //错误
        $("#error").click(function () {
            new TipBox({ type: error, str: 对不起,出错了!, hasBtn: true });
        });
 
        //提示
        $("#tip").click(function () {
            new TipBox({ type: tip, str: 这是提示信息, clickDomCancel: true, setTime: 10000500, hasBtn: true });
        });
 
        //加载
        $("#load").click(function () {
            new TipBox({
                type: load, str: "努力加载中..", setTime: 1500, callBack: function () {
                    new TipBox({ type: success, str: 操作成功, hasBtn: true });
                }
            });
        });
 
    </script>

技术分享

基于html5手机移动端对话框特效

原文:http://www.cnblogs.com/wzzl/p/4930818.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!