View Full Version : Rotating Banner HTML CSS

02-04-2010, 01:04 PM
Please be gentle I'm a newbie..

Making site just need some help my client wants the top blue image in the banner to change ie rotate a few different images could anyone please help me or help me with the code. I am stuck on this.

I am only new at making sites.


Thanks So much she is desperate for it so if any one could help that would be fantastic!


02-04-2010, 01:28 PM
Are you talking about "logo.jpg" or "bodyBg.jpg"?

Since your site already has an .html extension, you would use Javascripting
to call a PHP script ... otherwise, it would probably be better to use pure PHP.

I mention PHP for other reasons ... future CMS (content management) and
other dynamic features. But would you rather use Javascripting for the
swapping? And how should it swap ... randomly, by day, by week? What it the
criteria for swapping? And do you have other images in the same directory? Give
us the filenames for some of the othe images it will be swapping.

02-04-2010, 01:39 PM
It's the bodybg image and I would name them all the same just 1 , 2 , 3 on the end there will be 10 images total and would change say every 5 seconds or something not sure if that's possible.

Thanks so much for your reply.

02-04-2010, 02:00 PM
The problem with changing those is that it would require a page refresh each time.
Possibly it could be done using Flash?

Some questions to ask them ...
What is their reasoning for changing the background?
What benefits would changing the background have on their business or website?
What affect would that have on the concentration of someone trying to read or view the content?
Is it really necessary? Will it increase their business, or create return visits?

02-04-2010, 02:05 PM
I dont think its necessary just something they wanted. Can it be done with a rollover or any other easier way??