夺命雷公狗jquery---29滑动效果

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style type="text/css">
            div#result{
                width:400px;
                height:400px;
                background-color:red;
            }
        </style>
        <script src="js/jquery.js"></script>
        <script>
            $(function(){
                $('#btnslideDown').bind('click',function(){
                    $('#result').slideDown(3000);
                });

                $('#btnslideUp').bind('click',function(){
                    $('#result').slideUp(3000,function(){
                        alert('滑动已完事');
                    });
                });

                $('#btnslideToggle').bind('click',function(){
                    $('#result').slideToggle(3000);
                });
            });
        </script>
    </head>
    <body>
        <div id="result"></div>
        <hr />
        <input type="button" id="btnslideDown" value="SlideDown" />
        <input type="button" id="btnslideUp" value="SlideUp" />
        <input type="button" id="btnslideToggle" value="SlideToggle" />
    </body>
</html>

 

posted @ 2015-10-27 16:48  夺命雷公狗  阅读(125)  评论(0编辑  收藏  举报