<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#336699" onmouseover="this.style.backgroundColor='#f0f0f0';a.style.color='#003399'" onmouseout="this.style.backgroundColor='';a.style.color=''"><a href="#" id=a>新闻</a></td>
</tr>
</table>
<tr>
<td bgcolor="#336699" onmouseover="this.style.backgroundColor='#f0f0f0';a.style.color='#003399'" onmouseout="this.style.backgroundColor='';a.style.color=''"><a href="#" id=a>新闻</a></td>
</tr>
</table>
解决方案 »
- javascript最好的测试环境是什么呢?在ie和firefox中有什么典型的不同呢
- js:如何把select标签中的option 转为 text
- javascript如何获得图片右下角坐标
- 表单中的密码框,没有输入时显示文字,输入时显示×,应该怎么办呢?
- 一个简单的循环
- 有没有javascript的语法之类的文档,发给我一份,我急用啊,帮忙了各位
- 請問怎樣設計一個二進位轉十進位的程式?
- 如何在js里进行全文的字符串替换
- 怎么把javascript的变量值赋给jsp
- 用正则表达式怎样检测输入法为全角状态下的空格字符?
- **********如下难题该如何解决***********
- 简单问题~~~~~~~~解决马上给分````````````
<tr>
<td bgcolor="#336699" onmouseover="overbao(this)"
onmouseout="outbao(this)"><a href="#" ><font color="#FFFFFF">新闻</font></a></td>
</tr>
</table>
<script>
function overbao(obj)
{
obj.style.backgroundColor='#f0f0f0'
obj.firstChild.firstChild.color='#003399'
}
function outbao(obj)
{
obj.style.backgroundColor=''
obj.firstChild.color=''
}
</script>