-5

jQuery Marquee は jquery 1.6.4 で動作しますか? ライブラリが jquery >=1.6.4 を使用できるという情報がhttp://plugins.jquery.com/marquee/にあります。これは私のコードです:

    <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>
4

1 に答える 1

0

So I did the test for you

http://jsfiddle.net/aRW9Q/

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

The answer is nope, since on() was introduced in jQuery 1.7. Upgrade instead of using an outdated jQuery version!

于 2013-03-20T16:25:15.563 に答える