Qbasicnews.com

Full Version: JS monitor check
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
i need js to check client's screen rezolution so they can be directeed to the proper site for best viewing.
Correctly, you'd be using DHTML sonce you have to work with the DOM to get browser/screen size

http://www.dynamicdrive.com/dynamicindex9/index.html
has a couple of them

You really should design for ALL resolutions 800x600 and up, though. Use percentages. It's good practice.
how well is DHTML suported?
My advice: Test it on Netscape 4.5. If it works there, it works everywhere, as someone (nath?) once said.
i dont know anyboby with netscape4.5. get it my self?
Hm...scratch that. I looked it up, and both Netscape 4 and IE 4 supported it. Use it.
"supporting it" and it working are two different stories. Netscape 4 is a mess, which is why most web pages no longer support. It has buggy rendering, terrible CSS and annoying javascript. My usual stats are netscape 6.1 & up, IE 5 and up, or mozilla (if it works in mozilla, it tends to work in all of those). 90% of viewers alone use a version of IE 5.0 or up, and that statistic is from two years ago.

As for testing for different sizes, not only should you make it look good in 1024x768 and 800x600, but at 1280x1024 and 1600x1200. Laptops are set to extraordinarily high resolutions by default, and if you make your web designs dinky and unscaleable, it becomes hard to see. You just have to find parts that can stretch in your design and not give them any size restraint.
ah yes, so especially don't use pixels for font sizes, and avoid little box images for navigation

as for DHTML support, go to the page. See the "ALL" next to the scripts? That means it works in ALL browsers 3.0 and up.
I would suggest, diroga, that you use percentage widths on your tables (yes, the mindReader ™ is back again Wink). Instead of using javascript to find out that they're using 800X600 then directing them to a table with a width of "798" or somesuch, why not make the table width="98%" align="center" so you always get it right?

Also, despite all of this stuff you guys mention having wide support, about 8-10% of internet users go around with javascript turned off, thus making javascript detection not the best option Wink
yea, and 1% or so of the world uses lynx, i guess you'd better not use graphics either :barf:
Pages: 1 2 3