Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4914025
By: chikkubhai
I am trying to assign <tr> color change (infact much more than this) to all
of the <tr> entries in a table, something very similar to what I have shown
below, however I am unable to achieve the same for the display:table. The final
page source shows me that the display:table creates a new sub table and hence
<tr> and <td> entries inside the display table as follows:
<table>
<tr>
<td>
<display:table ...
creates new <tr> and <td>
How will be able to access these fields to set on-hover and on-click to access
or change the colors of that particular display:table <td>?
I have to end up writing complex javascript to achieve something very similar
to this which can be achieved by simple CSS.
<STYLE>
<!--
tr { background-color: #DDDDDD}
.initial { background-color: #DDDDDD; color:#000000 }
.normal { background-color: #CCCCCC }
.highlight { background-color: #8888FF }
//-->
</style>
<table border="0" cellspacing="0" bgcolor="#CCCCCC" cellpadding="0">
<tr>
<td bgcolor="#FFCC00" WIDTH="100"><b>Brand</b></td>
<td bgcolor="#FFCC00" WIDTH="100"><b>Dimensions</b></td>
<td bgcolor="#FFCC00" WIDTH="100"><b>Price</b></td>
<td bgcolor="#FFCC00" WIDTH="100"><b>Size</b></td>
<td bgcolor="#FFCC00" WIDTH="100"><b>Color</b></td>
<td bgcolor="#FFCC00" WIDTH="100"><b> Type</b></td>
<td bgcolor="#FFCC00" WIDTH="100"><b>Comment</b></td>
</tr>
<tr style="background-color:#CCCCCC;"
onMouseOver="this.className='highlight'"
onMouseOut="this.className='normal'">
<td>Row A</td>
<td>200x300</td>
<td>$200,000.00</td>
<td>small</td>
<td>white </td>
<td>good</td>
<td>2 doors</td>
</tr>
</table>
I have posted my original CSS file here:
http://sourceforge.net/forum/message.php?msg_id=4913962
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=249318
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user