- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Is there a wordpress plug-in to rotate background images? I can’t decide between a few for this site and though it might be good to randomly rotate a 2 or 3 different ones. Is this possible?
do you want it to choose from a set and randomly display on on page load?
https://css-tricks.com/snippets/php/randomize-background-image/
or do you want the image to change while the user is viewing the page? This is also doable but sounds pretty distracting if its a background image on the body.
Why does it say that the PHP goes ABOVE the DOCTYPE? Nothing should go above the DOCTYPE??? Right?
use this[ image rotator](http://www.rasteredge.com/how-to/vb-net-imaging/rotate-image/ “”), i am not sure if if a plug-in though.
A little javascript for randomise your body background …
> Why does it say that the PHP goes ABOVE the DOCTYPE? Nothing should go above the DOCTYPE??? Right?
Pretty much all server side languages can go above the DOCTYPE. In the example you mention, PHP processes the variables so they are available within the document. Nothing actually gets outputted above the DOCTYPE.