Changing background images like this

Posted by Azzyh on Stack Overflow See other posts from Stack Overflow or by Azzyh
Published on 2010-06-15T12:43:36Z Indexed on 2010/06/15 13:02 UTC
Read the original article Hit count: 240

Filed under:
|
|

If you guys check out this webpage: http://www2.scandvision.se/oresund10/

How have they done this background fade in fade out? When i check the source this

    <img id="wrapper-background" src="images/body-background-0.jpg" alt="Background" />

and i think theres some kind of script maybe php or js, or both, that every 5 sec changes the background: images/body-background-1.jpg

images/body-background-2.jpg

images/body-background-3.jpg

and so on..

So how did they do this? an example would be great, as i want to learn how to do that. If i was going to do something like this i think i would only manage to do a script in php that randomize everytime you refresh.

Thank you, this will expand my knowledge

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript