spewn
Programmer
- May 7, 2001
- 1,034
okay, i changed the code as follows...
function mynavon(page){
el = document.getElementById("box1"
;
el.style.backgroundColor = 'red';
if (self.location == page) el.style.bgColor = 'red';
}
each <td> in the nav bar table gets assigned a specific id and...cool, it works, so the nav bar option corresponds to the page...ex: if you go to 'sample.html', the button selection on the nav bar named 'sample' turns red, and so on...
the problem? it requires the user to have the latest and greatest browser version. anyone suggest another way?
- crispy
function mynavon(page){
el = document.getElementById("box1"
el.style.backgroundColor = 'red';
if (self.location == page) el.style.bgColor = 'red';
}
each <td> in the nav bar table gets assigned a specific id and...cool, it works, so the nav bar option corresponds to the page...ex: if you go to 'sample.html', the button selection on the nav bar named 'sample' turns red, and so on...
the problem? it requires the user to have the latest and greatest browser version. anyone suggest another way?
- crispy