View Single Post
  #1 (permalink)  
Old 18-10-2007, 05:44 PM
JDream JDream is offline
Novice Webmaster
 
Join Date: Jul 2007
Location: Kuala Lumpur
Posts: 15
Rep Power: 0
JDream is on a distinguished road
Switching background according to resolution

Hi all,

I am working on a project and the customer has requested that the background is able to change itself according to the monitor resolution set by the user.

Eg:-
if(resolution <= 1000) display.1024.jpg
if(resolution <= 1100) display.1152.jpg

and so on*

[*Sorry for the broken Javascript :P]

I've searched across the Internet and they only mostly teach you how to use Javascript to detect the resolution and pop-up a message to the user.

Can someone assist in this Javascript question? Many thanks.
Reply With Quote