I cant seem to get this code to work with my table code below -
<script src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$(".stripeMe tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
$(".stripeMe tr:even").addClass("alt");
});
</script>
Table Code-
<table width="780" cellpadding="0" cellspacing="0" border="0">
<tr style="background-image: url(templates/{TPL_NAME}/images/tr-background.jpg); background-repeat: repeat-x;" align="center" class="table_titles">
<td width="40%" align="left" height="18" style="padding-left:5px;">{TEMP}</td>
<td width="6%">{LANG}</td>
<td width="30%" align="left" style="padding-left:5px;">{TEMP}</td>
<td width="12%">{LANG}</td>
<td width="12%">{LANG}</td>
</tr>
{LOOP: FEAT_TEMP}
<tr align="center" class="table_titles">
<td align="left" style="padding-left:5px;"><a href="{TEMP}">{TEMP}</a></td>
<td>{TEMP.temp}</td>
<td align="left" style="padding-left:5px;">{TEMP}</td>
<td>{TEMP}</td>
<td>{TEMP}</td>
</tr>
<tr>
<Td colspan="5" background="templates/{TPL_NAME}/images/hline_dot.gif"><img src="templates/{TPL_NAME}/images/dot.gif" width="1" height="1" alt="" border="0"></TD>
</tr>
{/LOOP: FEAT.temp}
<tr>
<td colspan="5"><a href="temp.php?filter=featured"><img src="templates/{TPL_NAME}/images/button_viewall.gif" width="76" height="16" alt="" border="0" hspace="0" vspace="10"></a></td>
</tr>
</table>
Heres css for table colors-
tr.alt td {
background: #ecf6fc;
}
tr.over td {
background: #bcd4ec;
}
Any ideas on this?