javascript,php,arrays,banner,rotator
Seems to work for me after making your dir var a string. Using your Chrome Developer Tools / Console pointed the errors out for you. The following code works for me with two sample images: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Rotating Banners</title> <?php $dir =...
javascript,slider,setinterval,rotator
On your second from last line change .lenght-1 to .length-1 that makes the divs rotate indefinitely. I'm assuming that's what you want....