WEB rotating image script?

Discussion in 'OT Technology' started by DillDoe, Oct 9, 2007.

  1. DillDoe

    DillDoe Feels good mang

    Joined:
    Jan 16, 2004
    Messages:
    62,315
    Likes Received:
    46
    Location:
    dilldoe.organ
    is there a simple php rotating image script (or wordpress plugin)?
    something that will change the image when page changes.
     
  2. VD

    VD Active Member

    Joined:
    Aug 18, 2004
    Messages:
    71,510
    Likes Received:
    0
    Location:
    TWIN CITIES
    Code:
    <?
    $num = rand(1,50);  //change the 50 to whatever number of images you have and rename them according to number - will be easier
    
    echo "<img src='$num.jpg'>";
    ?>
    
    unless you want it scanning over a whole directory, in which case - just find something already written :o
     
  3. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,922
    Likes Received:
    11
    Location:
    Los Angeles

Share This Page