...

View Full Version : onmouseover repeate table



theborg72
06-07-2011, 08:14 AM
Hello..

hello, trying to create an effect with onmouseover and can not make it work right

the play code is

<cfoutput query="rsTest">
<table width="300" border="0" cellspacing="1" cellpadding="0" >
<tr style="background-color:###IIF(CurrentRow MOD 2, DE("99FFFF"), DE("9999FF"))#" >
<td>#rsTest.Betyg#</td>
</tr>
</table>
</cfoutput>
</body>
</html>

find it..

Gjslick
06-08-2011, 04:01 PM
Your code right now would just create the table with "alternating" colors. Would have no mouse effect...

You need to use JavaScript to create a mouseover effect. Try something like this:


<cfoutput query="rsTest">
<table width="300" border="0" cellspacing="1" cellpadding="0">
<tr style="background-color: ##99FFFF;" onmouseover="this.style.backgroundColor = '##9999FF';" onmouseout="this.style.backgroundColor = '##99FFFF';">
<td>#rsTest.Betyg#</td>
</tr>
</table>
</cfoutput>


-Greg



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum