首页 > 其他 > 详细

Basic Messager

时间:2015-04-17 17:34:58      阅读:169      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Basic Messager - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
    <h2>Basic Messager</h2>
    <p>Click on each button to see a distinct message box.</p>
    <div style="margin:20px 0;">
        <a href="#" class="easyui-linkbutton" onclick="show()">Show</a>
        <a href="#" class="easyui-linkbutton" onclick="slide()">Slide</a>
        <a href="#" class="easyui-linkbutton" onclick="fade()">Fade</a>
        <a href="#" class="easyui-linkbutton" onclick="progress()">Progress</a>
    </div>
    <script type="text/javascript">
        function show(){
            $.messager.show({
                title:‘My Title‘,
                msg:‘Message will be closed after 4 seconds.‘,
                showType:‘show‘
            });
        }
        function slide(){
            $.messager.show({
                title:‘My Title‘,
                msg:‘Message will be closed after 5 seconds.‘,
                timeout:5000,
                showType:‘slide‘
            });
        }
        function fade(){
            $.messager.show({
                title:‘My Title‘,
                msg:‘Message never be closed.‘,
                timeout:0,
                showType:‘fade‘
            });
        }
        function progress(){
            var win = $.messager.progress({
                title:‘Please waiting‘,
                msg:‘Loading data...‘
            });
            setTimeout(function(){
                $.messager.progress(‘close‘);
            },5000)
        }
    </script>
</body>
</html>

 

Basic Messager

原文:http://www.cnblogs.com/azhqiang/p/4435327.html

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