jQuery Marquee与jquery 1.6.4一起使用吗?

时间:2013-03-20 16:19:51

标签: javascript jquery marquee

jQuery Marquee是否适用于jquery 1.6.4? 这里有http://plugins.jquery.com/marquee/的信息,库可以使用jquery> = 1.6.4。 这是我的代码:

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
    <script src="https://raw.github.com/tobia/Pause/master/jquery.pause.js"></script>

    <script src="http://jquery.aamirafridi.com/jquerymarquee/jquery.marquee.js"></script>
    <script>
        $(function(){
            $('#marquee').marquee();
        });
    </script>
    <style type="text/css">
        .marquee {
          width: 300px;
          overflow: hidden;
          border:1px solid #ccc;
        }
    </style>
<body>
    <div id='marquee' class='marquee'>Less text here</div>
</body>

1 个答案:

答案 0 :(得分:0)

所以我为你做了测试

http://jsfiddle.net/aRW9Q/

Error says: "Uncaught TypeError: Object [object Object] has no method 'on' "

答案是否定的,因为jQuery 1.7中引入了on()。升级而不是使用过时的jQuery版本!