Random Header Graphics
A common feature that I am asked to impliment is to have the picture at the TOP change from page to page.
Th easiest way to achive this is to simply set up a randomiser.
Each time a page is viewed, a random picture is chosen and showen.
What size pictures?
- What is the size of your picture?
- Right click your Header picture and click on "View Background Image", "View picture" or some such option depending on the web browser you are using.
- Now that you have the Header Picture by its self, right click the picture and click on properties.
- What is the size of your picture?
- Mine is 874px X 225px.
- The pictures you create to use as random Header Pictures must be exactly, down to the last pixel, the same size as what you see on your screen.
Go ahead and generate as many pictures as you want to use at these size settings.
What name pictures?
- The pictures you create need to be called (most likely) Header1.jpg; Header2.jpg; Header3.jpg; Header4.jpg etc.
- Looking at the picture you got the pixel size for,
- Look in the address bar.
- What is the name you see?
- I saw http://ai.net.nz/templates/penguins/images/Header.jpg
- Header.jpg.
Where do they go?
- Up load the pictures, with the correct image size, to your website under
- templates/"thename of your template"/images
- in my case this is
- http://ai.net.nz/templates/penguins/images
You will still have your original Header.jpg file and nothing on your website is yet changed.
Now you need to get me to make the changes to the index.php file for the current template of your website.