[thelist] Screen Resloution Detection.
Erik Mattheis
gozz at gozz.com
Sun May 20 15:49:44 CDT 2001
>The screen resolution detection script I found at HITBOX.com & modified it a
>bit, Are there any suggestions:
It's better to do capability detection than browser type and version
detection ... if you want to use screen.width you can say
if (screen && typeof screen.width == 'number') {
// then you know you know screen.width will return
// a number regardless of the browser
}
Takes less code, too.
An alternate suggestion: It looks like you're already requiring
Flash, and a great thing about Flash is it can scale itself to window
size ... so maybe just make everything you're having the size
problems with Flash and use percentages for all your sizes.
--
- Erik Mattheis
"For best results, pronounce muh THEIGH ess."
(612) 827 3963
More information about the thelist
mailing list