print("<tr><td class='mainmenu'>
<a href='index.php?content=mainmenu'>
Main Menu</a></td></tr>");
What I am trying to do is switch between the styles .. Would this be done with onmouseover and onmouseout? I know by incorporating those into the <TD> declaration I can change one atribute.. but no matter what I do, I cant figure out how to change the styles.... HELP!
ex:
<td onmouseover="this.style.background='green';" onmouseout="this.style.background='#ffffff';" align="center">This cell will turn green</td>
So, hows it done???
Feel free to strip the print(" off of it.. my entire site is database driven using php, and I was just too lazy to strip it myself...
And before anyone yells, The search isnt returning anything, although im sure this has been answered before... But Im not finding it....
Last edited by cdxrevvved; 03-14-2003 at 11:08 PM.
ok now that successfully changes the background of the cells.
the problem is, once a link is clicked, it goes to the visted color, 6699cc. This is fine.. But when I move the mouse into that cell again, the link is still that color. I need it to switch back to the bold, white...
Any ideas? Its probably so simple too.... UGH!!!
*Both posts edited for readability
Last edited by cdxrevvved; 03-14-2003 at 11:09 PM.
Bookmarks