View Single Post
Old 16.03.2005, 14:56   #11 (permalink)
ufo
Senior Mamber
 
ufo's Avatar
 
Join Date: May 2004
Location: Romania
Posts: 180
ufo is an unknown quantity at this point
Default Re: Simple logo rotator

By doing an extensive search I found this:
http://weblogtoolscollection.com/arc...-image-header/
I have no time now for testing but soon I will try it.
Code:
 I did this;
- Created a folder on the server called ‘headers’
- Into that, I uploaded several different images that would suit as a header image.
- I saved the script above as a php file (call it what you will - mine is ‘rotate.php’) and uploaded into the same ‘headers’ folder.

  	 Now I edited the CSS file.
In WP, there is a line in #header which can be used to specify a url for the image to be loaded. This needs a light alteration:

  	 Mine was
#header {
background-image: url(image.jpg)

  	 and it is now

  	 background-image: url(headers/rotate.php);

  	Now, when the CSS is called, the background image is chosen randomly by the script.
Good luck!
__________________
Dont'use excessive force, pick a bigger hammer!
Supported by buyhttp.com
Where free means FREE!: Codename-Web HQ
ufo is offline   Reply With Quote
Sponsored Links