Problem in ajax

hi everyone…
i am using ajax to change the banner background while pressing on refresh
Note:it must be a background image because i will display data from database…

[URL=“http://www.graphicano.com/isis/nile_crown2.php”]
http://www.graphicano.com/isis/nile_crown2.php

please look at this link…

my problem is:
when i press refresh button in Firefox browser it changes the background and on pressing refresh again the background will change

but in internet explorer 8.0 it changes the background only for the first time and on pressing refresh again the background will not change.

how i can fix this problem ?? i want the user to press refresh at any time and the background will change… not only for the first time?
at the same time it must be a background image because i will display text from database…

see php’s header() function and send some http headers which instruct the browser not to cache the ajax response.

-or-

make each ajax request to a different url, by changing the query string.

You also include the prototype library, which provides great code for using ajax, yet you include an entire other script which does the same thing :confused:

But to be honest, why do you use ajax? This seems silly. Just use a javascript array and cycle through the elements. Unless you have more than a few hundred images you want to cycle through, or the amount of text that will change with each image is a large amount, this is the way to go.