Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Nov 2005, 23:40
Tradjick Tradjick is offline
 
Join Date: Jan 2004
[REQUEST] style based on screen res.

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.
Reply With Quote
  #2  
Old 05 Nov 2005, 00:38
Guest190829
Guest
 
Thread moved to the correct forum. Please post all requests in this forum.
Reply With Quote
  #3  
Old 05 Nov 2005, 00:58
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
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.
Reply With Quote
  #4  
Old 05 Nov 2005, 12:51
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Real name: Aman Singh
This would be a very good feature indeed!!
Reply With Quote
  #5  
Old 07 Nov 2005, 19:50
Tradjick Tradjick is offline
 
Join Date: Jan 2004
Originally Posted by Borgs8472
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/wor...een.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.
Reply With Quote
  #6  
Old 08 Nov 2005, 11:36
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Real name: Dave
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:19.

Layout Options | Width: Wide Color: