Problems/Questions About PHP Banner Rotation Script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
VanceVP
Forum Newbie
Posts: 3
Joined: Mon Dec 08, 2008 8:48 pm

Problems/Questions About PHP Banner Rotation Script

Post by VanceVP »

I am in the process of trying to learn CSS and know absolutely nothing about PHP so I'm here to ask the experts for help with a little problem I am having with a simple banner rotation script.

I'm trying to use a script called banners.php (http://ledbetter.freepgs.com/wordpress/?page_id=186) and I kinda sorta got it working.

I am trying to get the script to work at (http://www.thebams.org/junk2.php), a club I belong to.

First off, I got the thing to pretty much center the banners in the container, but I can't figure out how to move the banners up from where they are now. Do you have any suggestions as to how I can get this to move up? I know I did something wrong with my CSS code, but I just don't have the experience to figure out what I did wrong.

My next question deals with the way the script itself works.

It does not seem to rotate the 3 banners that I have set up for it reliably. It is suppose to change the banner each time the page is refreshed - but it don't. At least on my end it doesn't seem to. Can you tell from the script if it is set up right?

Also, I have been refreshing the page over and over again and it looks like it will cycle through the 3 banners (when it feels like it) and on the fourth refresh it goes blank. Is it suppose to do that? If it is, is there a way to get it to NOT do that. Is it possible to just have it cycle the banners themselves every time without going to a blank. Basically I'm trying to find out is if there is a blank written into it, can the blank be eliminated?

And finally, is this script written to only change the banner when the page is refreshed? If it is, can it be changed so that the banners will rotate each time the page opens? If I go to another page and then come back to it, the banners don't seem to change.

Thanks for any help with this,
VanceVP
Post Reply