Random Image Rotation

by Dan Benjamin

58 Reader Comments

Back to the Article
  1. someone asked earlier if this can work with .swf files.  will it?  i imagine all you have to do is add .swf to the $extList
    i haven’t done it yet but hopefully it works.

    Copy & paste the code below to embed this comment.
  2. Ok, I’m trying to view a local file (its not on the server yet, just my comp) and I get nothing, just a red x.  Is there something I’m missing here about php??

    Copy & paste the code below to embed this comment.
  3. Does the page the image link resides in need to have a .php extension, or will just .html do?
    I’ve tried both at
    http://artsaloft.com/rotate.html
    and it doesn’t seem to show up.
    Anyone able to advise?

    Copy & paste the code below to embed this comment.
  4. Hi
    Just wanted to add a big ‘Thanks’
    Installed the script and it worked first time, even mixed in on an asp page.
    Can’t really ask for more than that.
    Keep up the great work, just starting with PHP and it helps a great deal to be able to view these sort of scripts
    Again, thank you …..

    Copy & paste the code below to embed this comment.
  5. All of the rotators I have seen are random. I realize that sequencing might require cookies or some messin’ wit da session, but is it possible (I have no clue) to place all the file names in a text file and have them “walked through” instead of randomized?

    This wouldn’t work for this rotator (I don’t think), but is there another out there that will sequence, maybe even without the cookies, etc.?

    Now that would be cool. Five PAYPAL dollars are yours if you can point me to one that will.

    There, the gauntlet hath been…um, lain.

    Copy & paste the code below to embed this comment.
  6. For some unknown reason, my server won’t process php files unless they have the extension .php4

    sigh have to ask tech support about that.
    But the script does work, just fine!

    Copy & paste the code below to embed this comment.
  7. can you make each image link to a differetn site? <a

    Copy & paste the code below to embed this comment.
  8. I cant get any of the scripts to work? I’ve made folders…put them in with the images…made a page with an image…linked the php script?  all i get is a red x…

    Copy & paste the code below to embed this comment.