<script>
function click()
{
document.all('option').id='temp';
document.all('temp').innerText='文件';
document.all('file').id='option';
document.all('option').innerText='选项';
document.all('temp').id='file';
}
</script>
function click()
{
document.all('option').id='temp';
document.all('temp').innerText='文件';
document.all('file').id='option';
document.all('option').innerText='选项';
document.all('temp').id='file';
}
</script>
<tr>
<td id="option">选项</td>
<td id="edit">编辑</td>
<td id="file">文件</td>
</tr>
</table>
<button onclick="chg1()">test1</button><script>
function chg1()
{
if(tbl)
{
tbl.firstChild.firstChild.firstChild.swapNode(tbl.firstChild.firstChild.childNodes[1])
}}</script>测试通过!
tbl.firstChild.firstChild.firstChild
<==>
tbl.rows(0).cells(0)Are you OK?
<tr>
<td id="option">选项</td>
<td id="edit">编辑</td>
<td id="file">文件</td>
</tr>
</table>
<button onclick="chg1()">test1</button><script>
function chg1()
{
if(tbl)
{tbl.rows(0).cells(0).swapNode(tbl.rows(0).cells(1))
}}</script>我上面的程序你看了吗?
http://fason.nease.net/zhuanti/table/sort.htm
这个是我见过的最强的表格控件了,看看