With the help of a friendly guy I've built a tab script that is very simple and doesn't require an additional script like jQuery UI.
Now, I've seen the address bar thing which is really cool so you actually have ACCESS to the tabs, be able to bookmark the tabs and use browsers back/forth buttons.
http://www.asual.com/jquery/address/
here is my JS fiddle: http://jsfiddle.net/BiBA/WEEFd/
I tried to add it into my existing JS snippet but it didnt' work. Do you know how to add the address support into this tab script? $(document).ready(function(){ initTabs(); });
function initTabs() {
$('#tabMenu a').bind('click',function(e) {
e.preventDefault();
var thref = $(this).attr("href").replace(/#/, '');
$('#tabMenu a').removeClass('active');
$(this).addClass('active');
$('#tabContent div.content').removeClass('active');
$('#'+thref).addClass('active');
});
}