Saturday, 31 August 2013

Changing the tabs manually in jquerytools to have a default tab when mouse is out of the tab container

Changing the tabs manually in jquerytools to have a default tab when mouse
is out of the tab container

I have a perfect working jquerytools accordion / tabs that change with
mouse hover.
I want that when the mouse is out of the tabs container, a default tab to
be activated instead the last activated tab.
My javascript is as follows:
$(function() {
$("#accordion").tabs("#accordion div", {
tabs: 'img.tab',
effect: 'fade',
event: 'mouseover'
});
});
$('#accordion').mouseout(function(){
// How should I activate a special tab?
});

No comments:

Post a Comment