Image Rotator in IE7

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
Sharkbite
Forum Newbie
Posts: 1
Joined: Wed Jun 09, 2010 3:13 pm

Image Rotator in IE7

Post 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.
Post Reply