Page 1 of 1

Image Rotator in IE7

Posted: Wed Jun 09, 2010 3:19 pm
by Sharkbite
Hi,
I hope I am in the right forum. I am a graphic designer, not a programmer but more and more I am finding that I need to use some form of php in my websites. Right now I just wanted a simple image rotator that will rotate 4 images in a website randomly as you click through the site. The url is http://www.sharkbite.ca/sharktestsites/RyanVenier the php code I used is

Code: Select all

<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
readfile($files[array_rand($files)]);
?>
It works great in every browser EXCEPT IE7. The images do not rotate unless you refresh the page, I would like them to rotate as you click through (as they do in other bowsers). Can you help me with this?
Thanks.