2015-05-04, 01:10 AM
Hello
I want to put some images as background, however I'd like to each time a user reloads the page, he would see a different background.
So far, I read some explanations, but I can't manage how to make that work because it needs to use php in the .css and the random generator in a .php file
I take a look at this http://www.yourhowto.net/random-backgrou...n-website/ and this https://css-tricks.com/snippets/php/rand...und-image/
Any ideas about how should I do it?
Edit:
Just figured it out, created a random image generator with PHP and the just change the background on the global.css to myfile.php and that's it
I want to put some images as background, however I'd like to each time a user reloads the page, he would see a different background.
So far, I read some explanations, but I can't manage how to make that work because it needs to use php in the .css and the random generator in a .php file
I take a look at this http://www.yourhowto.net/random-backgrou...n-website/ and this https://css-tricks.com/snippets/php/rand...und-image/
Any ideas about how should I do it?
Edit:
Just figured it out, created a random image generator with PHP and the just change the background on the global.css to myfile.php and that's it