Menu
Hi I am using the following snippet in my website to have tabs along the top. The tabs change colour if the user is on a particular page. This works in IE, Chrome and Safari, but not FireFox.
Here is the relevant code:
[CODE]<script type=”text/javascript”>
function setActiveMenu() {
var control = document.getElementById(‘tabid’);
var menuid = control.innerText;
var menu = document.getElementById(menuid);
menu.className = ‘current’;
}
window.onload = setActiveMenu;
</script>
This is the webpage where I got the sample:
[url]http://www.dynamicdrive.com/style/csslibrary/item/dd-color-tabs/