Hi again, I've been using this code for a while now and it works great. The only problem is that in Internet Explorer the <body onload="tabs();"> takes a little too long to load which results in the hidden tabs being visible until all of the images on the page have finished loading. Granted it is only for about a second or two but still is a problem.
I have experimented using window.onload function but I am not very smart when it comes to javascript.
Code:
<script language="JavaScript" type="text/javascript">
window.onload = tabs(); {
// load tab function on window load
}
</script>
This ultimately worked but created a javascript error " 'null' is null or not an object " and points to line 39.
here is line 39 from the script:
Code:
selectElement.attachEvent("onchange", setNewActiveTab);
What am I doing wrong here? Can I achieve this without the javascript error?
Thanks in advance - sorry I'm stupid