<td width="50%" onMouseover="changecolor(this)" onMouseout="changeback(this)" style="cursor:hand">
解决方案 »
- 简单的JQ显示与隐藏问题
- 使用jquery或JS左键单击图片显示菜单,如何定位菜单?
- [求助SOS]JavaScript里数组的动态操作问题..
- 菜鸟跪求:如何编写带有"确认","取消"按钮的警告对话框, 在线急等,
- js中正则表达式的使用问题
- 这个问题请 高手 过目? 刷新和session!
- 请问有什么方法可以在select的列表前加小图标,还有就是能不能让select框用输入的功能.
- 紧急求助!!!紧急求助!!!紧急求助!!!
- 需要JavaScript的深入教程!(20分)
- 这个方法怎么改?
- 求助,在线等待
- 关于"<Div id=''Menu''>" & chr(13)& chr(10)....
function changecolor(obj) {
obj.style.color="white";
obj.parentElement.parentElement.parentElement.parentElement.parentElement.style.backgroundColor = "#9999cc";
}function changeback(obj) {
status = "";
obj.style.color="black";
obj.parentElement.parentElement.parentElement.parentElement.parentElement.backgroundColor = "#D3D3D3";
}
</script>
<html><head>
<style type="text/css">
.TableHead{ background-color: #D3D3D3;text-align: center;font-family: Arial;font-size: 12px}
</style>
<script>
function changecolor(obj) {
obj.style.color="white";
obj.parentElement.parentElement.parentElement.parentElement.style.backgroundColor = "#9999cc";
} function changeback(obj) {
status = "";
obj.style.color="black";
obj.parentElement.parentElement.parentElement.parentElement.style.backgroundColor = "#D3D3D3";
}
</script>
</head><body><table border="1" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="50%" class="TableHead">
<table>
<tr>
<td class="TableHead">
</td>
<td align="center" class="TableHead" onMouseover="changecolor(this)" onMouseout="changeback(this)" style="cursor:hand">
asdfasf
</td>
<td width="1%" align=right class="TableHead">
</td>
</tr>
</table>
</td>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
</table></body></html>
<script>
function changeback() {
aaa.style.color="#11111";
}
</script>
<table>
<tr>
<td id="aaa" onMouseover="changeback()" >aaaaa</td>
</tr>
</table>