Ok this is what the solution should look like, but I'm not getting it
working so that if I hover then the sliding should stop, and when
hovering out, it should continue sliding again.:

$(document).ready(function() {
                        function scroller() {
                                $('#newsticker ul li').animate(
                                        {left: "-200px"},
                                        2000,
                                        "linear",
                                        function(){
                                                $(this).css("left", "200px");
                                                scroller();
                                        }
                                )
                                .hover(
                                jQuery(this).stop(),
                                function(){
                                        $(this).css("left", 
$(this).offset.left);
                                        scroller();
                                });
                        };
                        scroller();
                });



On Feb 24, 12:15 am, Ettiene <etti...@gmail.com> wrote:
> On line 782 of jquery-1.3.1.js this line of code makes this error:
> name.match is not a function.
>
> On line 782 there is:
> if ( name.match( /float/i ) )
>
> I'm trying to write a "news scroller" This is my code:
>
> $(document).ready(function() {
>                         function scroller() {
>                                 $("div#newsticker ul li").animate(
>                                         $(this).css("left", "-200px"),
>                                         "normal",
>                                         "linear",
>                                         function(){
>                                                 $(this).css("left", "200px");
>                                                 scroller();
>                                         }
>                                 );
>                         }
>                         scroller();
>                 });
>
> Any help would be greatly appreciated.

Reply via email to