eval("document.all.row"+ rowID).bgColor = "blue";
解决方案 »
- 5秒钟跳转到div中的id页面
- 一段163 js代码,看不太懂?
- 菜比求助JS
- 使用JavaScript调用XFire发布的webservice遇到的问题
- 诡异的js~ ~~~~(>_<)~~~~
- *******急!!JQuery插件 Autocomplete 自动显示#########
- 即时计算文本框数据
- 一个正则表达式
- 如何在js里面判断任意一个input的ime-mode是active?还是disabled?(二),LxcJie(肖冲*爱*捷捷) 请进
- 点第一个下拉列表框选择**省,整个页面刷新,**省下对应的地区(市)在第二个下拉列表框显示出来
- 孟子、梅花雨、骆驼、阿信大哥,还有个问题想请教!obj.outerHTML
- 在jsp网页中如何包含js文件
function select_row(rowID)
{
document.getElementById("row"+rowID).bgColor="blue";
}
</script>
<tr id="row0" onclick="select_row(this)"><td>...</td></tr>
<tr id="row0" onclick="select_row(this)"><td>...</td></tr>
<tr id="row0" onclick="select_row(this)"><td>...</td></tr></table></form>
<script language="javascript">
var theCurrentTr;
function select_row(obj)
{
if(theCurrentTr!=null) theCurrentTr.bgColor="";
theCurrentTr=obj;
theCurrentTr.bgColor="cccccc";}
</script>
<tr id="row0" onmouseover="select_row(this)"><td>...</td></tr>
<tr id="row0" onmouseover="select_row(this)"><td>...</td></tr>
<tr id="row0" onmouseover="select_row(this)"><td>...</td></tr>
</table></form>
<script language="javascript">
var theCurrentTr;
function select_row(obj)
{
if(theCurrentTr!=null) theCurrentTr.bgColor="";
theCurrentTr=obj;
if(theCurrentTr!=null) theCurrentTr.bgColor="blue";}
</script>
<tr id="row0" onmouseover="select_row(this)"><td>...</td></tr>
<tr id="row0" onmouseover="select_row(this)"><td>...</td></tr>
<tr id="row0" onmouseover="select_row(this)"><td>...</td></tr>
</table></form>
<script language="javascript">
var theCurrentTr;
function select_row(obj)
{
if(theCurrentTr!=null) theCurrentTr.bgColor="";
theCurrentTr=obj;
if(theCurrentTr!=null) theCurrentTr.bgColor="blue";}
</script>
<tr id="row0" onclick="select_row('0')"><td>...</td></tr>
<tr id="row0" onclick="select_row('1')"><td>...</td></tr>
<tr id="row0" onclick="select_row('2')"><td>...</td></tr></table></form>
<script language="javascript">
function select_row(obj)
{
Form1.childNodes[obj].bgcolor="blue";}
</script>