Folgender Quellcode:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
und
alert(document.body.scrollTop);
funktioniert nicht. Mit diesem Doctype schaltet der IE 6 in den CSS Compat Mode. Macht also weniger Fehler ;-)
if (document.compatMode && document.compatMode != "BackCompat") // IE6 im "CSS1Compat" Mode
document.documentElement.scrollTop
else
document.body.scrollTop; // IE6, 5 ...
sollte helfen.
Grüße,
Jochen