<table border=0 cellPadding=5 cellSpacing=0 width=100%>
<tr>
<td colSpan=5 align=center><a href="index.html" title="Home"><img src="theImages/logoAlone.png" /></a></td>
</tr>
<tr>
<td colSpan=5 height=15></td>
</tr>
<tr>
<td width=18% class=fdBBorder id=type1><A href="findDoctors.html">Find A Doctor</a></td>
<td width=18% class=fdBBorder id=type2><A href="patSvc.html">Patient Services</a></td>
<td width=18% class=fdBBorder id=type3><A href="mapNDir.html">Maps & Directions</a></td>
<td width=18% class=fdBBorder id=type4><A href="trainProgs.html">Training Programs</a></td>
<td width=18% class=fdBBorder id=type5><A href="aboutUs.html">About Us</a></td>
</tr>
<tr>
<td align=left valign=top id=type11>
<div class=mainP><img src="theImages/greenArrow.png" align=absmiddle /> <A href="findDoctors.html">Doctor's List</a></div>
<div class=mainP><img src="theImages/greenArrow.png" align=absmiddle /> <A href="findDoctors.html">Staff Highlight</a></div>
</td>
</tr>
<tr>
<td align=left valign=top id=type22>
<div class=mainP><img src="theImages/greenArrow.png" align=absmiddle /> <A href="findDoctors.html">Doctor's List</a></div>
<div class=mainP><img src="theImages/greenArrow.png" align=absmiddle /> <A href="findDoctors.html">Staff Highlight</a></div>
</td>
</tr>
</table>
我的问题是,如果我将鼠标悬停在 Find a Doctor 上,我希望 TD 更改 bgColor 以及 TD id type22 的 bgColor,当您将鼠标悬停在 type1 上时,几乎会更改多个 TD 背景颜色?我如何为此创建一个jquery?我有这个,但这改变了加载颜色:
$(document).ready(function(){
$("#type1").css("background-color", "red");
$("#type11").css("background-color", "red");
});
但我希望它处于悬停状态。
谢谢