Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other [Solved] Recommend a Plugin for Image Rotator?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #26873
    cre8tive1
    Member

    Hi all,

    I’m curious which plug-in you all would use to load a new image each time a page is visited. A sample of what I’m looking for is here http://www.joemcnally.com/blog/

    A new image loads at the very top of the page each time the page is reloaded. I’m looking for the most simple method of accomplishing this. If the images were selected randomly from a folder that would be sweet!

    Any input appreciated.

    Thanks,

    jr

    #66856
    AshtonSanders
    Participant

    I just do it manually…

    I name all the images with the same name and a different number 1-10, then say:

    /images/imgname<?= rand(1,10) ?>.jpg

    I’m pretty sure that’s right…

    #66888
    cre8tive1
    Member

    That’s a good option. I could change images without changing code. That is my real goal. To allow a client to update the images used in the rotator without having to adjust any code.

    Anyone have any other options that they use for this scenario?

    #66917
    cre8tive1
    Member

    I’m not able to get <?= rand(1,3) ?> to work.

    I’ve tried searching for the correct syntax but I’m not finding an answer. Any suggestions?

    Here is the code I’m using:

    Code:
    #66939
    AshtonSanders
    Participant

    Hmmm

    My first guess is that your server doesn’t allow short hand. Try this:

    Code:
    #66943
    cre8tive1
    Member

    Thanks!

    I had tried <?php… but forgot to add "echo". I’m still getting the hang of php. The code works perfectly now.

    Thanks again,

    jr

    #66946
    AshtonSanders
    Participant

    Excellent [img]http://www.websitesinaflash.com/images/thumbsup.gif[/img]

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Other’ is closed to new topics and replies.