<script>
document.onclick = function(e){
if (!e) e = window.event;
var trg = e.target ? e.target : e.srcElement;
if (trg.tagName=="TD"){
window.status="第"+(trg.parentNode.rowIndex+1)+"行,第"+(trg.cellIndex+1)+"列"
}
}
</script>
document.onclick = function(e){
if (!e) e = window.event;
var trg = e.target ? e.target : e.srcElement;
if (trg.tagName=="TD"){
window.status="第"+(trg.parentNode.rowIndex+1)+"行,第"+(trg.cellIndex+1)+"列"
}
}
</script>
解决方案 »
- 100分--如何从一段文本中,取出所有的邮箱
- 如何申请Google Maps API 密钥?
- 有关httpRequest同步异步使用的问题。
- 隔行换色+选中高亮 的高性能解决方案 求助
- js读写text文件要兼容ff和ie?
- 请问<a href="javascript:;" > 点击触发什么样的事件?
- iis打开默认index.htm通过form提交给另一个htm文件怎么实现?
- 360焦点图,求思路
- 我做了一个固定层,是用实际坐标值得,我在800X600,1024X768下都调好位置了,但是。。。。
- 怎么限制html中某种tag的数目
- (求助)图片不断的滚动....
- 请 fason(阿信) gaofaq(老高) net_lover(孟子E章) 进来拿分
http://www.quirksmode.org/dom/w3c_core.html
to wanghr100(灰豆宝宝.net) : could you give me more detail,plz
http://www.mozilla.org/docs/dom/domref/
could u give me the all code include html, maybe some different in html