This is my own realisation of tabbed interface, which is quite popular kind of UI. This implemenattion is based on most popular jQuery framework. So it gives assumption that it will work fine in the widespread browsers.
Main features of jQuery.gTab plugin which I consider as its specific advantages:
4 tabs and 1st one selected by default, where all options by default.
$('#gTabs_1').gTabs(['tab 1','tab 2', 'tab 3','tab 4'],'_tabs_ex1_');
2nd tab is set to be selected by default, so you can define any tab to be selected by default. Notice that indexation of tabs starts from 0, so for a setting 2nd one I put 1 in the code, see below:
$('#gTabs_2').gTabs(['tab 1','tab 2', 'tab 3','tab 4'],'_tabs_ex2_',1);
You can bind yourself handler(callback function) which is executed every time when new tab is selected. Below I'm binding the simple function which just print some text after every selection of tab.
$('#gTabs_3').gTabs(['tab 1','tab 2', 'tab 3','tab 4'],'_tabs_ex3_',0,function(index){$('#_ex3_out').append('tab_'+index+',')});
© 2008, Concepted by GolDen