Microsoft KB Archive/811808

= offsetTop Property Returns an Incorrect Value When Used in a Table =

Article ID: 811808

Article Last Modified on 11/15/2007

-

APPLIES TO

 Microsoft Internet Explorer 6.0, when used with:  Microsoft Windows XP Home Edition

 Microsoft Windows XP Professional

 Microsoft Windows XP Media Center Edition 2002

 Microsoft Windows XP Tablet PC Edition</li></ul>

 Microsoft Windows 2000 Advanced Server</li></ul>

 Microsoft Windows 2000 Datacenter Server</li></ul>

 Microsoft Windows 2000 Professional Edition</li></ul>

 Microsoft Windows 2000 Server</li></ul>

 Microsoft Windows NT Server 4.0 Standard Edition</li></ul>

 Microsoft Windows NT Server 4.0, Terminal Server Edition</li></ul>

 Microsoft Windows NT Workstation 4.0 Developer Edition</li></ul>

 Microsoft Windows Millennium Edition</li></ul>

<ul> <li>Microsoft Windows 98 Second Edition</li></ul>

<ul> <li>Microsoft Windows 98 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

<div class="symptoms_section">

SYMPTOMS
When you use the offsetTop DHTML property for a DIV tag within a table in Internet Explorer 6.0, this returns a different value from the value returned in Internet Explorer 5.01. The following HTML code demonstrates the problem when you use offsetTop in Internet Explorer 6.0:

<script language=&quot;JavaScript1.2&quot; type=&quot;text/javascript&quot;>

function buttonClick {  alert (myDiv.offsetTop); }

<body id=&quot;myBody&quot;>

<input type=button value=&quot;Get myDiv.offsetTop &quot; onclick=&quot;buttonClick&quot; id=button1 name=button1>

<div class="resolution_section">

RESOLUTION
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Important Install the February, 2003 Cumulative Patch for Internet Explorer before you install this fix. For additional informationabout this update, click the following article number to view the article in the Microsoft Knowledge Base:

810847 February, 2003, Cumulative Patch for Internet Explorer

If you installed this fix before you installed the February, 2003 Cumulative Patch for Internet Explorer, you must reinstall this fix.

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel. <pre class="fixed_text">  Date         Time   Version       Size       File name ---  18-Dec-2002  02:54  6.0.2800.1148 2,784,256  Mshtml.dll

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbhotfixserver kbie600sp2fix kbfix kbbug kbinetdev kbqfe kbie600presp2fix KB811808

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.