black3842
02-16-2005, 10:39 PM
CSS classes
.btnav { background-color: #C0C0C0; border: 1px #000000 solid;}
.btnOver { background-color: #64BCCE; border: 1px #000000 solid;}
HTML stuff
This works
<td class="btnav" onmouseover="style.backgroundColor='#64BCCE';"
onmouseout="style.backgroundColor='#C0C0C0'" width="20%" >
<div align="center"><a href="services.html">Services</a></div>
</td>
But this doesn't
<td class="btnav" onmouseover="class='btnOver'"
onmouseout="class='btnav'">
<div align="center"><a href="pricing.html" target="_blank">Pricing</a></div>
</td>
I want to control this with a stylesheet, not inline style tags, any ideas what I'm doing wrong? I'm new to this, so be gentle...hehe.
.btnav { background-color: #C0C0C0; border: 1px #000000 solid;}
.btnOver { background-color: #64BCCE; border: 1px #000000 solid;}
HTML stuff
This works
<td class="btnav" onmouseover="style.backgroundColor='#64BCCE';"
onmouseout="style.backgroundColor='#C0C0C0'" width="20%" >
<div align="center"><a href="services.html">Services</a></div>
</td>
But this doesn't
<td class="btnav" onmouseover="class='btnOver'"
onmouseout="class='btnav'">
<div align="center"><a href="pricing.html" target="_blank">Pricing</a></div>
</td>
I want to control this with a stylesheet, not inline style tags, any ideas what I'm doing wrong? I'm new to this, so be gentle...hehe.