View Single Post
Old 07-05-2009, 08:23 PM   #6 (permalink)
ahmorrow
God (TSF Enthusiast)
 
ahmorrow's Avatar
 
Join Date: May 2009
Location: Jeffersonville, IN
Posts: 887
OS: Ubuntu 9.10 [Karmic Koala]

My System

Send a message via AIM to ahmorrow Send a message via Yahoo to ahmorrow
Re: Expandable Background

window.screen.availWidth

This property gets the users current screen width. Use this in an if statement. Say the width is 2048 you can set the pages font to be larger than the one already made for 800x600

HINT: You can use the operators below to make the font size increase automatically (if they have an odd screen resolution like 4096x???).

if(screen.availWidth > 800)
{code here;}


>
<
>=
<=
__________________
If I have not responded to a post in 24 hours or more, PM me with a link to the thread and I'll get back to you. I do not help via PM/IM/Email.
ahmorrow is offline   Reply With Quote