views:

36

answers:

1

I'm trying the following to control the speed of rotation of the tabs but with no luck, any ideas?

$('#featured').tabs({

onShow: function(event, ui) {

if(ui.index == 0)>

  { 
     $('#featured').tabs("rotate", 2000, true);
  }


  else if(ui.index == 1){    
     $('#featured').tabs("rotate", 5000, true);  
   }

  else if(ui.index == 2){

  $('#featured').tabs("rotate", 10000, true);

  }
}
});
A: 

I don't know if this will help your problem, but the callback is show not onShow.

http://jqueryui.com/demos/tabs/#event-show

czarchaic