I am working on adding a feature to jcarousel lite which will allow
for continous scrolling when a button is hovered over previous or
next. So far I am about half way there but I need to write an ending
statment to tell jquery to stop the scroll upon the hover out event.
What I have in the commented brackets is the part I tried to write
(which would just advance the carousel one more cell then stop), but
that didnt take at all.

Also for any one that is familiar with jcarousels inner workings, how
can I go about setting the pause speed between each cell to 0? I have
looked around in the library plug in and made adjustsments where I
could see them, but still there is a noticable pause.


if(o.hvrPrev)
            $(o.hvrPrev).hover(function() {
                setInterval(function() {
                go(curr-o.scroll);
            },    o.auto-o.speed);

            /*function() {
                return go(curr-o.scroll);
            }
            });*/

        if(o.hvrNext)
            $(o.hvrNext).hover(function() {
                setInterval(function() {
                go(curr+o.scroll);
            },  o.auto+o.speed);

            /*function() {
                return go(curr+o.scroll);
            }
            });*/


Basically what I have done here is merged the btnNext function and the
auto function together to create the scrolling effect I am aiming for.
Like I said, for the most part it works.

I appreciate any help

Reply via email to