看网页DOM结构

用来看网页DOM结构.仅在FF IE SAFRIA下有效.

javascript:function%20loadScript(scriptURL)%20{%20var%20scriptElem%20=%20document.createElement('SCRIPT');%20scriptElem.setAttribute('language',%20'JavaScript');%20scriptElem.setAttribute('src',%20scriptURL);%20document.body.appendChild(scriptElem);}loadScript('http://westciv.com/xray/thexray.js');


用法.
1.制上面一段代码.
2.随便打开个网页吧.等它加载完.
3.在地址栏粘贴一下刚才复制的东西.
4.出来一个黑框框了吧.
5.随便点一个元素看看?

posted @ 2009-08-05 15:53  飘渺峰  阅读(504)  评论(1编辑  收藏  举报