码迷,mamicode.com
首页 > Web开发 > 详细

jquery.marquee

时间:2019-11-11 00:14:41      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:min   water   examples   hidden   rect   window   example   asi   onload   

  http://aamirafridi.com/jquery/jquery-marquee-plugin#examples

    <script src="/plugins/marquee/js/jquery.marquee.min.js"></script>
    <script src="/plugins/marquee/js/jquery.pause.js"></script>
    <script src="/plugins/marquee/js/jquery.easing.min.js"></script>

 

    <style type="text/css">
        .marquee {
            width: 300px;
            overflow: hidden;
            border: 1px solid #ccc;
            background: #ccc;
        }
        .ver {
            height: 500px;
            width: 90%;
        }
    </style>
    <div class="marquee ver" data-direction=up data-duration=1000 data-pauseonhover="true">jQuery marquee is the best marquee plugin in the world.  </div>

 

    <script>
        $(document).ready(function () {
            $(.marquee).marquee();
        });
    </script>

 另一个插件jQuery.liMarquee

    <link href="/plugins/jQueryliMarquee/css/default.css" rel="stylesheet" />
    <link href="/plugins/jQueryliMarquee/css/liMarquee.css" rel="stylesheet" />
    <script src="/jquery-3.3.1.min.js"></script>
    <script src="/plugins/jQueryliMarquee/js/jquery.liMarquee.js"></script>
    <script>
            window.onload = function () {
                waterFall();

                $(.box).liMarquee({
                    direction: up
                });
                //$(".box").marquee();
            }
    </script>

 

jquery.marquee

标签:min   water   examples   hidden   rect   window   example   asi   onload   

原文地址:https://www.cnblogs.com/hofmann/p/11832299.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!