Alright so I've found code that randomizes the background image of a page. And I've found code that randomizes the background color of an image. But I haven't found a code that randomizes a combination of a color AND an image.
Let's say I want a page to have a red gradient image background adjusted, repeat-x, spanning across the top. But the image is only so tall and the page background color needs to be red, too.
But on refresh I want the image to be a green gradient, and the background color to be green.
It seems so simple yet I can't figure it out. I'm trying to mostly only use CSS here but I assume this is going to require PHP. I WON'T use javascript because it can be blocked.
An example of a PHP rotator is here: http://host.sonspring.com/css-rotator/
But it only rotates images, not colors. (And obviously it does it in a div, when I'd want it in the body).
I guess I can part with this web design idea if I have to but darn it seemed like a good idea.
Before I scrap this design idea altogether, can anyone point me in the right direction here?
Let's say I want a page to have a red gradient image background adjusted, repeat-x, spanning across the top. But the image is only so tall and the page background color needs to be red, too.
But on refresh I want the image to be a green gradient, and the background color to be green.
It seems so simple yet I can't figure it out. I'm trying to mostly only use CSS here but I assume this is going to require PHP. I WON'T use javascript because it can be blocked.
An example of a PHP rotator is here: http://host.sonspring.com/css-rotator/
But it only rotates images, not colors. (And obviously it does it in a div, when I'd want it in the body).
I guess I can part with this web design idea if I have to but darn it seemed like a good idea.
Before I scrap this design idea altogether, can anyone point me in the right direction here?