- Kod: Zaznacz cały
if(window.document.body.pageYOffset) y = window.document.body.pageYOffset;
if(window.document.pageYOffset) y = window.document.pageYOffset;
if(window.pageYOffset) y = window.pageYOffset;
if(window.document.documentElement.pageYOffset) y = window.document.documentElement.pageYOffset;
window.document.getElementById(nn).style.top = y;
Problem w tym, że w pliku HTML działa, ale już w XHTML nie - co jest źle?