Topic: Loading a Random BG using CSS |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: Lost Angeles Kalifornia, via Hawaii.... |
posted 02-04-2007 18:24
Is there a way to do this? I want to have about 10 images and I'd like the BG to be random. I know I can do it if it was a regular img, .... i dunno, practical? |
Lunatic (VI) Inmate From: under the bed |
posted 02-04-2007 18:33
Through CSS alone, no. |
Paranoid (IV) Inmate From: Norway |
posted 02-04-2007 19:36
For the cross fading banner(s) on my site, I wrote a PHP script that returns a random image in its folder. I can use it directly as the src attribute of an IMG tag or as the background-image property of a CSS rule. |
Maniac (V) Mad Librarian From: the space between us |
posted 02-04-2007 23:49
i did pretty much what poi mentioned here by using the sig rotator script. i asked for permission of course |