来龙去脉各位请参看:http://expert.csdn.net/Expert/topic/1952/1952472.xml?temp=.1059992
解决方案 »
- Extjs4 MVC 如何使用多个 app.js? 有没有Extjs大牛 分全给了
- window.onload 里面的javascript程序返回的innerhtml怎么控制位置?
- 帮忙写一个windows对话框。。貌似是showdialog什么的
- “天气预报”超实用手机应用软件完整源码下载
- javascript触发链接怎么触发rel阿
- 急送10分·求一个正则验证中文的?
- 如何点击按钮只打开一次子窗口
- 在javascript 如何自己制作一个模态窗体(window.showModalDialog)
- 我怎么控制当鼠标经过文字时候,该文字改变颜色,而其他文字颜色不变
- 请问如何实现如下功能!
- 请教!如何用javascript动态生成克拖拽的组件?
- 各位兄弟帮忙:关于文本框样式设置问题?
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 3</title>
</head><body>
<script>
function oLight(e,flag){e=e.parentNode.parentNode;
//alert(e.rowIndex);
//alert(e.rowIndex+flag);//r=document.getElementById('test').childNodes[(e.rowIndex+flag)]
r=document.getElementById('test').rows[e.rowIndex+flag];temp=e.style.backgroundColor;
e.style.backgroundColor=r.style.backgroundColor;
r.style.backgroundColor=temp;
}
</script>
<table border="1" width="100" id=test>
<tr style="background-color:red">
<td width="100%"><input type=button value="down" onclick="oLight(this,1)"></td>
</tr>
<tr style="background-color:blue">
<td width="100%"><input type=button value="up" onclick="oLight(this,-1)"><input type=button value="down" onclick="oLight(this,1)"> </td>
</tr>
<tr style="background-color:white">
<td width="100%"><input type=button value=up onclick="oLight(this,-1)"><input type=button value=down onclick="oLight(this,1)"> </td>
</tr>
<tr style="background-color:purple">
<td width="100%"><input type=button value=up onclick="oLight(this,-1)"> </td>
</tr>
</table></body></html>