I wonder if it's possible to add a random background for a blog hosted on wordpress.com. Every time the visitor enter the page or press F5, a different background should load. How can I do that?
Random background on wordpress.com hosted blog
219 views Asked by Marcone Ferreira Ramos At
2
Yes. It is possible to load random backgrounds each time the user loads or refreshes the page.
UPDATE: Based on your update to your question, it seems that you now want to know HOW to do this rather than just if it's possible. A very simple way would be something like this:
What this would do is scan a directory named "backgrounds" that sits in your images folder in your theme's directory. A random jpeg from that folder would be chosen, and your body element would be styled accordingly.