Click to See Complete Forum and Search --> : Different pages for different screen resolutions.


goldnova350
01-25-2004, 08:38 PM
This may belong in the JavaScript forum, but thought I'd ask here first...

Is there a script that will load different pages depending on monitor resolution?

Vladdy
01-25-2004, 08:47 PM
The better approach is to design pages that fit any resolution.
You can create couple of stylesheets with different size graphics and allow users to switch them depending on their browser window size. You can see an example of such customization on my site.

Paul Jr
01-25-2004, 09:06 PM
I found this at javascript.internet.com. (http://javascript.internet.com/user-details/resolution-page.html)

Although I must agree completely with Vladdy on this.

PeOfEo
01-25-2004, 09:07 PM
The problem with using java script is it still screws the people who run around with it off or flat out do not support it. That would be me half the time, because even though firebird blocks out popup that does not mean other ads that fly around my pages are not annoying, so I just turn off java script, please do not forget people like me. I aggree with vlad, making a site using %s instead of flat pixils to do width (for example style="width:10%;" vs style="width:10px;" or if you still use the width attribute width="10%" vs width="10"). You can also use margin positioning, floats, or top left right and bottom in css. http://www.bluerobot.com/web/layouts/ has some examples of this, the elements just slide around to match the resolution while others stretch while a few that are in places where they dont need to move stay put.

goldnova350
01-25-2004, 10:01 PM
Well, I'm really just exploring possibilities. The website as it is now is ok for all resolutions, and actually the redesign is too. I guess the problem is the old one looks fine for all resolutions, but looks slightly worse the higher the resolution. Yet, it has one advantage over the new one: no scrolling necessary.

PeOfEo
01-25-2004, 10:09 PM
people do not mind vertical scrolling, infact I would dare to say the majority of people have wheel or scroll mice these days (many optical too), so its not that big of a deal. Even then the people without them might just use the arrow keys. The only problem is horizontal scrolling, that is lame. If it is neccessary to display content which is > then layout in value, then embrace the scroll bar. Because lets face it unless you are www.csszengarden.com people probably are not visiting your site for its beauty

goldnova350
01-25-2004, 10:39 PM
True, thanks for the input. (yes it's just vertical)

PeOfEo
01-25-2004, 10:49 PM
no prob... I just cant help but toss in my $0.02