ars aranea. the web, the way we make it. | |||
5 Internet Explorer: scrollTop vs DOCTYPEPosted: Nov 23, 2005, under DHTML. Updated: Dec 2, 2005. Add a comment!I’ve had quite a bit of “fun” today, trying to figure out why my sidebar slider doesn’t work in Explorer. Funniest thing was, it worked perfectly when I tested it in a mockup HTML file. Turns out So I assumed that something broke it when it went online. Was it WordPress? Was it some weird specification in Explorer? (it wasn’t, as far as MSDN cold tell). Explorer issues no JavaScript errors. It just returned 0 instead of proper values. I ended up saving the HTML to disk and deleting bits of it to see when the slider would start working again (actually, when Within seconds, I had my answer. It was the DOCTYPE declaration. You know, the HTML conformity declaration, fairly standard stuff. As soon as it was gone, Update: Thanks to this, I got a pure JavaScript solution, as well as an explanation. A So, grabbing
| Important
Categories
Authoring
(1)Books (2)Cross platforms (2)DHTML (12)Graphical design (3)IT today (12)Morals&Politics (10)ODP (1)Random stuff (3)Romania (16)Security (7)SEO (2)Software (8)SQL (1)Standards (7)Technology (3)WordPress (4)[În română] (4)[This website] (2)Time-jump Syndication Need hosting?I've been a happy user of LunarPages since 2005. |
||
Copyright ©2005–2008 Zuavra | |||