Hi,
I'm experiencing a wierd problem with IE 6 in Windows with two
_slightly_ different Version.
Give the following HTMl-Code, ideally the output of offsetTop should be
"105"; a few pixel plus minus would still be ok, whyever.
I've tested this successfully on 6.0.2800.1106 on a german W2KPro
machine, also with 6.0.2800.1106 on a german XPPro machine.
When I tested it on 6.0.2600.0000 the output is "209". What?! The
HTML-snipplet below is ripped of from a pretty complex page layout; it's
the bare minimum which reproduces the problem quite well.
My only goal was to find out the exact position of the DIV scroller once
the page is rendered so I can apply some method to emulate a scrolling
mechanism. But this wierd result prevents me from does this. It's
completely useless, I've searched google quite a while but couldn't find
anything.
I hope someone can test this on an english version of XP, maybe with
same version or a higher version and can tell me if the output matches
what I have.
thanks in advance,
- Markus
-------------------8<--------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
body { margin: 0; padding: 0; }
</style>
<script type="text/javascript">
window.onload = function() {
alert(document. getElementById( 'scroller').off setTop);
}
</script>
</head>
<body>
<table>
<tr><td height="100"</td></tr>
<tr>
<td>
<div id="scroller" style="position :relative;">
</div>
</td>
</tr>
</table>
</body>
</html>