<table>
<tr id="0"><td></td></tr>
<tr id="1"><td></td></tr>
<tr id="2"><td></td></tr>
<table>
<script>
document.all("0").bgColor="red"
document.all("1").style.backgroundColor="blue"
document.all("2").cells(0).innerText="green"
</script>
<tr id="0"><td></td></tr>
<tr id="1"><td></td></tr>
<tr id="2"><td></td></tr>
<table>
<script>
document.all("0").bgColor="red"
document.all("1").style.backgroundColor="blue"
document.all("2").cells(0).innerText="green"
</script>
解决方案 »
- 急急 现在想实现一个可输入的下拉列表框同时要实时的查找,也就是当输入一部分字体,同时列出部分以这几个开头的选项。请问谁有这方面的代码,请各位多多帮忙。谢谢!!
- 关于搜狗地图开发过程遇到的问题
- 请教:按文件夹内文件自动生成列表,在列表选择后显示其内容
- 使用wbox控件出现的问题。
- IE 占用CUP会逐渐升高
- 怎么创建domain为空的cookie,可以被不同域名下的web程序访问?谢谢!
- 请教js文件里如何调用另一个js定义的方法?
- 一个困惑的问题,100分
- 怎样使两个下拉菜单相互关联?数据是从数据库中读取的!!
- 有谁懂lotus notes 5.0
- 数据类型变换问题——帮帮初学者吧
- 在js中怎样判断字符串中含有字符 \
<tr id="0"><td></td></tr>
<tr id="1"><td></td></tr>
<tr id="2"><td></td></tr>
<table>
<script>
document.all.tags("TR")[0].style.backgroundColor="red"
document.all.tags("TR")[1].style.backgroundColor="red"
document.all.tags("TR")[2].style.backgroundColor="red"
</script>你要在td里面加点内容才看得到效果
=========================================
<table>
<tr id="a0"><td></td></tr>
<tr id="a1"><td></td></tr>
<tr id="a2"><td></td></tr>
<table>
=========================================