Onmouseover Change bgcolor

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AliasBDI
Forum Contributor
Posts: 286
Joined: Fri Nov 15, 2002 10:35 am
Location: Spring, TX, USA

Onmouseover Change bgcolor

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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")?>'"
Post Reply