I wrote a tab system using some very basic Javascript and it runs like a champ in IE 8 but, in FireFox 3 I am coming up short. The pertitent HTML is as follows:
<
I would recommend anyone trying to work with the DOM in javascript to use a library like jquery. It will make your life much easier.
You could then rewrite the JS function as fallows:
function processTabs(TabContainer, PageContainer, Index) {
var tabContainer = document.getElementById(TabContainer);
// jquery used to find all the - elements
var tabs = $(tabContainer).filter('li');
// use the jquery get( index ) function to retrieve the first tab
var tab = tabs.get(0);
var i = 0;
.... more code
}