hi,
Es liegt am Doctype.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Wenn der drin ist, gehts nicht.
Warum bloss?
Vermutlich, weil der IE dann nicht body scrollbar macht, sondern dem html-Element die eintsprechende Overflow-Formatierung zuweist.
Analoges Problem wie bspw. beim Abfragen von clientHeight oder scrollTop - im standardkonformen Modus als Eigenschaft von document.documentElement abfragbar, im Quirks Mode oder IE < 6 von document.body.
Aber wie gesagt, mit dynamischer Zuweisung der Handlerfunktion per Script an window.onscroll gibt es m.W. auch im IE keine Probleme, egal welcher Modus.
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }