OK, based on recommendations from my other thread (this one) I'm going to be adding a background image to my webpage. Piece of cake.
Here's the deal, I want to have it change the image randomly. No problem, if it was a standard html/php, I'd just do something like:
and let that go to town. I'm not 100% sure on the syntax, but basically that'd add a random number to the file name and then I'd have my random background, right? (assuming I have files named background1.jpg, background2.jpg, background3.jpg, etc) I think so.
BUT!
That means I'd have to go to every single file and add that line to it. Not cool. With CSS you can handle that in one line, but I don't think you can put the php in there... can you? Is there a way around this? Help? Anyone? Beuller?
Thanks!
Here's the deal, I want to have it change the image randomly. No problem, if it was a standard html/php, I'd just do something like:
PHP:
<img src="http://www.brianellisrules.com/background<?php rand(1,3);?>.jpg">
BUT!
That means I'd have to go to every single file and add that line to it. Not cool. With CSS you can handle that in one line, but I don't think you can put the php in there... can you? Is there a way around this? Help? Anyone? Beuller?
Thanks!