PDA

View Full Version : Netscape 4 menu highlight code optimization...


T-ball
06-25-2001, 04:34 AM
I pulled a code snipped from http://wsabstract.com/ which I was happy with.

Until I noticed the following text, though:

"Before we leave, it's important to note that, with one's thinking cap on, the code above can actually be greatly reduced and refined (especially the part pertaining to IE 4/ NS 6). That we leave to you to tackle!"

ARG!

Are there any code gurus here that can take a look at the following code and figure out what they meant?

<table width=200>
<tr>
<td onMouseover="this.style.backgroundColor='yellow'" onMouseout="this.style.backgroundColor='white'"><ilayer width=100%><layer width=100% onMouseover="this.bgColor='yellow'" onMouseout="this.bgColor='white'">Menu item 1</ilayer></layer></td>
</tr>
<tr>
<td onMouseover="this.style.backgroundColor='yellow'" onMouseout="this.style.backgroundColor='white'"><ilayer width=100%><layer width=100% onMouseover="this.bgColor='yellow'" onMouseout="this.bgColor='white'">Menu item 2</ilayer></layer></td>
</tr>
</table>