Page 1 of 1

picture resize !!!

Posted: Wed Jul 01, 2009 12:04 pm
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

Re: picture resize !!!

Posted: Thu Jul 02, 2009 5:27 am
by nits4u
no reply ??

Re: picture resize !!!

Posted: Thu Jul 02, 2009 5:47 am
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.