PDA

View Full Version : [REQUEST] style based on screen res.


Tradjick
11-04-2005, 10:40 PM
Hello.

Has anybody found a method to enforce a certain style based on the visitor´s screen resolution? That would be really nice to have.

I´ll have a look on this in a few weeks, but for now i´m too occupied with publicity.

Guest190829
11-04-2005, 11:38 PM
Thread moved to the correct forum. Please post all requests in this forum. :)

Borgs8472
11-04-2005, 11:58 PM
I didn't think web browsers could detect screen resolutions, someone correct me if I'm wrong.

You could always have screen resolution as a profile option and place the appropriate conditionals around the style related statements in your code.

Neutral Singh
11-05-2005, 11:51 AM
This would be a very good feature indeed!!

Tradjick
11-07-2005, 06:50 PM
I didn't think web browsers could detect screen resolutions, someone correct me if I'm wrong.

You could always have screen resolution as a profile option and place the appropriate conditionals around the style related statements in your code.
Yes, but unfortunately a lot users don?t care about their profile. Also, guests don?t have a profile.

I just did a quick search and found the following examples in Javascript:

http://www.javascriptkit.com/script/cut52.shtml
http://www.cyscape.com/developer/workshop/workshop-screen.asp?bhcp=1
http://www.pageresource.com/jscript/jscreen.htm

The 2nd link is especially interesting because it detects the user?s size of his browser window.

colicab-d
11-08-2005, 10:36 AM
I wrote a JS script a while back to Optimize the style for members on my site. http://www.artorg.co.uk - demo hit the optimize style button :)

it gives a diff bg image for users over 1024x768 :)