加入收藏-方便您以后查找网页特效哦
你的位置:
主页
>>
表格特效
返回指定单元格的数据
1-1
1-2
2-1
2-2
一行
二行
一列
二列
加入如下代码到body区域
<table id="tb1" width="50%" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="50%">1-1</td> <td width="50%">1-2</td> </tr> <tr> <td>2-1</td> <td onclick="javascript:alert(this.innerText)">2-2</td> </tr> </table> <script language="javascript"> function show(r,c) { alert(tb1.rows[r].cells[c].innerText) } </script> <select id="s1"> <option value="0">一行</option> <option value="1">二行</option> </select> <select id="s2"> <option value="0">一列</option> <option value="1">二列</option> </select> <input type="button" onclick="show(s1.value,s2.value)" value="确定">
COPYRIGHT © 2003-2005 ALL RIGHTS RESERVED
业务联系
|
广告服务
|
网站建设
|
关于我们
|
免责声明
月光宝盒工作室
800*600