views:

500

answers:

1

Hi,

I am currently working with a tab menu which cycles through automatically. Once I mouseover one of the tabs the "rotation" should stop on the selected tab and when I mouseout it should continue rotating from the selected tab item.

$("#featured > ul").tabs({ 
                     event: 'mouseover', 
                     fx: { opacity: "toggle"} })
                   .tabs("rotate", 10000, true);

At the moment the onmouseover selects the correct tab but it keeps rotating.

I have been stuck on this for AGES so any help would be really appreciated.

Thanks for your time..

A: 

You can stop rotation by setting the first argument to 0 or null:

.tabs("rotate", 0);

So I would imagine that you can simply do that on mouseover, and reset back to your defaults on mouseout:

$("#featured > ul").mouseover(function() {
    $(this).tabs("rotate", 0);
}).mouseout(function() {
    $(this).tabs("rotate", 10000, true);
});
karim79
Almost there, please refer to http://stackoverflow.com/questions/2333511/javascript-scroll-menu-mouseover-selection-not-working-correctly-on-first-conta for my most current issue on this..