<html> 
<script>
function doit(obj){
var obj = obj.parentNode.parentNode.parentNode;
obj = obj.nextSibling;
while(obj){
if(obj.nodeType == 3) alert(obj.nodeValue);
if(obj.tagName == "TABLE") break;
obj = obj.nextSibling;
}
}
</script><body>
<table> <tr> <td onclick="doit(this);">111 </td> </tr> </table>00000000 <br>99999啊啊啊 <br> 
<table> <tr> <td onclick="doit(this);">222 </td> </tr> </table>aaaaaaaa <br>99999啊啊啊 <br> 
<table> <tr> <td onclick="doit(this);">333 </td> </tr> </table>bbbbbbbb <br>ddddd啊啊啊 <br>
</body> 
</html>