Page 1 of 1

Onmouseover Change bgcolor

Posted: Tue Aug 10, 2004 8:46 pm
by AliasBDI
I have a dynamic table being filled with query results and every other row alters colors. I wanted to have the every table change a color during its "onmouseover" state.

Here is my code for the rows:

Code: Select all

<tr align="left" valign="top" <?php echo Alternate($queryLIST->AbsolutePosition(), "bgcolor", "1:#dcdcdc,1:#f5f5f5")?>>
Any ideas?

Posted: Tue Aug 10, 2004 8:55 pm
by feyd
can't remember if this works but:

Code: Select all

onmouseover="this.style.backgroundColor='#606'" onmouseout="this.style.backgroundColor='<?php echo Alternate($queryLIST->AbsolutePosition(), "bgcolor", "1:#dcdcdc,1:#f5f5f5")?>'"