Hi all,
I have a basic menu (compatible with IE and N6), the code of which is shown
below.
Is there any way that I can tidy this up - perhaps define the criteria once
only for the entire menu.
It seems like a lot of code for such a simple menu and repeatative in parts.
Also, I take it that it should work with other popular browsers aswell e.g.
Opera.
Sketch
<CENTER>
<table width=100 border=0>
<tr>
<td onMouseover="th is.style.backgr oundColor='#D5E 0B8'"
onMouseout="thi s.style.backgro undColor='#ffff ff'"><ilayer width=100%><lay er
width=100% onMouseover="th is.bgColor='yel low'"
onMouseout="thi s.bgColor='whit e'"><FONT COLOR="#000000" FONT FACE="VERDANA,
ARIAL, HELVETICA, SANS-SERIF" SIZE=2><B>Item 1</ilayer></layer></td>
</tr>
<tr>
<td onMouseover="th is.style.backgr oundColor='#D5E 0B8'"
onMouseout="thi s.style.backgro undColor='#ffff ff'"><ilayer width=100%><lay er
width=100% onMouseover="th is.bgColor='yel low'"
onMouseout="thi s.bgColor='whit e'"><FONT COLOR="#000000" FONT FACE="VERDANA,
ARIAL, HELVETICA, SANS-SERIF" SIZE=2><B>Item 2</ilayer></layer></td>
</tr>
<tr>
<td onMouseover="th is.style.backgr oundColor='#D5E 0B8'"
onMouseout="thi s.style.backgro undColor='#ffff ff'"><ilayer width=100%><lay er
width=100% onMouseover="th is.bgColor='yel low'"
onMouseout="thi s.bgColor='whit e'"><FONT COLOR="#000000" FONT FACE="VERDANA,
ARIAL, HELVETICA, SANS-SERIF" SIZE=2><B>Item 3</ilayer></layer></td>
</tr>
</FONT></B>
</TABLE>
</CENTER>
I have a basic menu (compatible with IE and N6), the code of which is shown
below.
Is there any way that I can tidy this up - perhaps define the criteria once
only for the entire menu.
It seems like a lot of code for such a simple menu and repeatative in parts.
Also, I take it that it should work with other popular browsers aswell e.g.
Opera.
Sketch
<CENTER>
<table width=100 border=0>
<tr>
<td onMouseover="th is.style.backgr oundColor='#D5E 0B8'"
onMouseout="thi s.style.backgro undColor='#ffff ff'"><ilayer width=100%><lay er
width=100% onMouseover="th is.bgColor='yel low'"
onMouseout="thi s.bgColor='whit e'"><FONT COLOR="#000000" FONT FACE="VERDANA,
ARIAL, HELVETICA, SANS-SERIF" SIZE=2><B>Item 1</ilayer></layer></td>
</tr>
<tr>
<td onMouseover="th is.style.backgr oundColor='#D5E 0B8'"
onMouseout="thi s.style.backgro undColor='#ffff ff'"><ilayer width=100%><lay er
width=100% onMouseover="th is.bgColor='yel low'"
onMouseout="thi s.bgColor='whit e'"><FONT COLOR="#000000" FONT FACE="VERDANA,
ARIAL, HELVETICA, SANS-SERIF" SIZE=2><B>Item 2</ilayer></layer></td>
</tr>
<tr>
<td onMouseover="th is.style.backgr oundColor='#D5E 0B8'"
onMouseout="thi s.style.backgro undColor='#ffff ff'"><ilayer width=100%><lay er
width=100% onMouseover="th is.bgColor='yel low'"
onMouseout="thi s.bgColor='whit e'"><FONT COLOR="#000000" FONT FACE="VERDANA,
ARIAL, HELVETICA, SANS-SERIF" SIZE=2><B>Item 3</ilayer></layer></td>
</tr>
</FONT></B>
</TABLE>
</CENTER>
Comment