This guide will outline how to create rotating images using PHP and CSS as the method. This method is utilized in the BF_Vista rotating backgrounds and also in the headers of two other styles, Black_Ice and Glacier - Both on my demo site, just use the refresh button there to try it out. The link is in my signature.
This can be applied to backgrounds, images or even ads. -This guide will cover how-to use this as a rotating background in two different ways. 1) As a full page background 2) As a background in a particular section of your page like a header. All with respect to phpBB but of course you can adapt this to just about anything.
1) Setting it all up
Create a folder in your theme/images folder within your style...
---You can call it "header" - "bg" or whatever you want to name it.
2) The PHP file
Place this PHP file in your newly created directory. (Either .rar or .zip downloads)
3) Images
Place any images you want to be in this rotation inside the newly created folder as well.
---I might suggest that you use images the same size and in this tutorial it is assumed they are all the same size (the exact size of the space you are trying to fill)
4) Open your stylesheet.
---The styleshhet you place it in will be dependent on the type of style base you are working with. For subsilver2 based styles, this is generally theme/stylesheet.css - For proSilver based styles this tutorial will place the changes in theme/colours.css
5) Adding the right CSS attributes
If you want to create headers with rotating backgrounds you will first need to create the confines in which you will put your background which is beyond the depth of this tutorial... However, let's assume you are applying this rotating background to a portion of your style that already uses a background image.












- Very nice, thank you -



- it's broken.