This summarises the situation:

http://www.quirksmode.org/js/doctypes.html

And this is the latest info:

http://www.quirksmode.org/viewport/compatibility.html

Scrolling offset (How much the page has scrolled)

var x,y;
if (self.pageYOffset) // all except Explorer
{
        x = self.pageXOffset;
        y = self.pageYOffset;
}
else if (document.documentElement && document.documentElement.scrollTop)
        // Explorer 6 Strict
{
        x = document.documentElement.scrollLeft;
        y = document.documentElement.scrollTop;
}
else if (document.body) // all other Explorers
{
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
}


Hope this helps.

On 9/7/07, Claude Schneegans <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is it a well known problem and is there any work around?
>
> The offsetTop value of an option in a select, and the scrollTop of the
> select are always returned as zero by IE,
> whatever the position of the scroll bar is.
> Mozilla shows correct values.



-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287938
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to