Author |
Topic |
|
bjlt
Senior Member
1144 Posts |
Posted - 15 July 2001 : 00:00:21
|
I hate netscape.
I want to make my site adjust to user resolution, and here's my plan:
use javascript to decide user resolution, then document write corresponding css file (i'll just use 640x480 800x600 1024x768, maybe a version for up resolutions also)
I use tables to format the layout of the site, then I give every "box", such as tables, rows, cells, images, etc, a css class and define its size there. while by simply giving dif size in cssk, I can use same page for all resolution, and adjust to user setting easily (without refresh, without several set of designs). Doing this , I need to use a different set of (larger) pictures for resolution over 1024 (rare occation), and hide some content in 640x480 (I use javascript to do this, not too difficult)
How nice this plan is, without considering extrem large resolution, you just use one set of web pages and different css sheet for diferent user settings.
The problem is, NS 4 does NOT support size in css normally. Everything works fine in IE 5 as I tested, but all size in css are ignored in NS4.
I had to find alternative plans for NS,
Here's my alternative plan. keep what I did above. besides, I add a serverside check for user agent, and see if it's handicapt in CSS. if so, I add a hardcoded size for all the "boxes" for 800x600 resolution, and display a message somewhere on the page about the disability of their browser. I use noscript for 800x600 css also, for those do not have javascript.
so those using lam browser will get 800x600css (with size in tags) design, no js user get 800x600css also, both with a notice about their problem. other people get pages for their resolution (css)
still problem for no CSS user, before I do something for them, I wonder how many do not have CSS in their browser? I guess few have this problem, and I'd add a javascript to check for this and display a message if they no css support is found. For those who neither have css or javascript, they are ignored, if such a person ever exists today.
What's your idea about my plan?
questions concerned:
How many browsers do not support css? (handicapt browser or disabled by user) Does IE4, opera, NS6 support "box" size in CSS? How many browsers do not support javascript (disabled by user)
Is it a good behavior to check for the user agent at serverside? (for the above plan, I have to this as I can not insert javascripts in html tags, or I have to write a lot of javascripts for every element, not ideal)
Thanks.
how many people disable css, javascript, or cookie? just wonder if there're any reports about this. I think they are all widely used today. I wonder how many browsers in use today do not support css, and how many people will diable css, javascript or cookie. I myself sometimes disable pop-up windows, and I might turn js off in chatrooms where somepeople us it to kick off people. other time it's on.
btw, the firewall/filter program can block banners,you can select which address or patern of url to block (e.g. /cgi?ad abc.com/affiliate/ etc), a nightmire for website owners and ad agents. (so on my own site, i'll add more ad features other than banners)
Any body ever tracked and pay attention on this when design your sites?
Edited by - bjlt on 15 July 2001 02:09:02
Edited by - bjlt on 15 July 2001 22:44:52 |
|
bjlt
Senior Member
1144 Posts |
Posted - 15 July 2001 : 22:46:51
|
found two sites and a componet about this:
http://www.webreview.com http://www.richinstyle.com
where you can find detailed bug/feature list of every browser. now I know NS4 do not support width/height in box/css, ie4/5/partly support it (fine in my case),all new browsers have no problem on this.
found a component BrowserHawk, a browser detection component you may already know it.
http://www.cyscape.com/products/bhawk/features.asp
it costs usd99/license, enables you to detect most, if not all, user browser type/ability/settings. seems good.
Then what I will do is server side detect is css available? no-write hardcoded version for 800x600, notice the user yes does the browser support css feature I need? no-write hardcoded version for 800x600, notice the user yes let javascript to select css to user resolution, noscripts to css for 800x600, with links to other resolution, save it in cookie, then i need a asp check for cookie on this, if it's set there, do not write noscripts for 800x600css. still notice the user about turn on javascript
I'll run this for a while and see how many use handicapt brower for a while, while provide feedback option for these people what resolution they'd use, notice them by upgrading, they can enjoy it which most other people already have.
By this plan, all people can view a site for 800x600 at least (IMHO, acceptable for 1024x768 user, not so good for 640x480 user or those with 1024+ resolution)
people with ie5+ ns6+. opera4+ can have web pages for their resolution (option to do so even if they turn off javascript or css) (not tested, assumed as feature I use is supported by this browsers. ie4 not sure, in the chart, it's the same with ie5 that width is box is partly supported, and ie 5 seems fine in my case)
|
|
|
|
Topic |
|
|
|