picture resize !!!

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
nits4u
Forum Newbie
Posts: 15
Joined: Tue Jun 23, 2009 3:44 am

picture resize !!!

Post by nits4u »

guys i want to set a background picture that resize itself to fit exactly within the browser with the change in resolution. mean that does not contract or stretch as we change the resolution.
as much i know it is not possible thro0' CSS.
and if i am not wrong this can be done by Java script by using a function that reads the user's current resolution and load the picture according to that.
if so than plz provide the code or is there other way out ???
thanx
nits4u
Forum Newbie
Posts: 15
Joined: Tue Jun 23, 2009 3:44 am

Re: picture resize !!!

Post by nits4u »

no reply ??
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: picture resize !!!

Post by papa »

There's a lot of functions in JS that allows you to get client information such as screen resolution etc. Check them out.

Google is your friend.
Post Reply