garikr
New Member
- Messages
- 46
- Reaction score
- 0
- Points
- 0
I was messing around with JavaSript's .scrollTop property. document.documentElement.scrollTop works in Opera and FF but doesn't in Chrome. document.body.scrollTop works in Chrome but not in FF and Opera. Ok, not a biggie, a little fork in a script would not hurt. navigator.appName yields "Opera" in Opera, but both Chrome and FF produce "Netscape". Well, no need to panic, plenty of other stuff in navigator to sort these Netscapes out. navigator.Vendor produces "Google Inc" and "Fedora" (guess that's cause FF came with my Linux). I could also learn more about regular expressions and parse navigator.userAgent string. And that's when I decided to boot into my fresh WinXP installation (messed up my old XP partition installing Linux, but that's besides the point) The horror.... In IE6 my page looks nothing like it used to. The background color is all screwed, no .png support, scrollbars in places I didn't even know they could exist. Putting the page on a flashdrive and taking it to my girlfriends new netbook with IE7 produces the same result, except for one position:fixed div which moved to where it kinda supposed to be. So what do I do? Do I forget about all the semi-fancy stuff and make it basic? Do I write loads of ActiveX .png and other workarounds? Do I make different pages and have PHP serve them according to the browser? Or do I turn my back completely on all the IE users of the world? I'm sure most of you have had similar experiences. Any thoughts/suggestions are more than welcome.
P.S.
Microsoft should track down every Internet Explorer user and pay them to switch to IE8. Bill can write it off as a charitable donation.
P.S.
Microsoft should track down every Internet Explorer user and pay them to switch to IE8. Bill can write it off as a charitable donation.