I’ll give you free support. 🙂
That script works, it’s just a matter of how you use it. In your case, you aren’t actually using it because those images are not linked to it.
However, since you’re wanting it to rotate four different images, presumably from the same place, then that script might not be the best way to go anyway. The most likely scenario is that you see four copies of the same image. You probably want to pick 4 different random images from some set of X images and display those, right?
Really, you need to define what you want it to do precisely and then somebody can create a simple script to do that for you. Predefined scripts like this are great if they fit your needs, but when they don’t, it’s better to define your needs more precisely instead.
Thanks, Otto:)
I actually have a folder called img with several pictures, and I want to rotate so that a user sees a random set of 4 pictures, not the same 4 all the time, as I have it right now.
Sorry that I wasn’t clear!
Yeah, but I was wanting a bit more definition than that. But that’s okay, we’ll try it another way. 🙂
The way that rotator script works that you linked to above works is that you edit the script to specify where this “img” directory is. Then you call it from your html like this:
<img src='http://example.com/path/rotate.php'>
or something similar. Basically you would replace the images you already have in your header now with that. When the browser goes to get the image, the rotate script pulls one at random and send it back.
Go ahead and see if you can get it to work that way. I don’t think it will be quite what you want, but that’s how you’d make it actually work. 🙂
Basically that is what I use on about all my sites, the random.php that rotates a banner. I actually stuck the code into my CSS file as such:
#header {
margin: 5px auto 5px;
padding: 0;
background: #fff
url(“http://www.bui4ever.com/wp-content/themes/bui4ever_v15/img/headers/rotate.php”) no-repeat bottom;
width: 760px;
height: 143px;
border: 2px solid #000;
}
and that produced my random rotating banner here: http://www.bui4ever.com