Alguna idea como solucionarlo?
gracias!
Código:
<title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <script type="text/JavaScript"> var posX =0; var posY =0; function findPos() { var obj = document.getElementById('bla'); posX = obj.offsetLeft; posY = obj.offsetTop; while(obj.offsetParent) { posX=posX+obj.offsetParent.offsetLeft; posY=posY+obj.offsetParent.offsetTop; if(obj==document.getElementsByTagName('body')[0]){break} else{obj=obj.offsetParent;} } return posY; } onload=findPos; document.write(posY); </script> <style type="text/css"> <!-- html body { margin-top: 0px; margin-left: 0px; } --> </style> </head> <body> <div style="position:absolute;left:10px;top:10px"> <table style="position:relative;left:10px;top:10px" width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td id='bla'>blabla</td> </tr> </table> </div> </body> </html>