A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: not just random (on load) image, random (on load) imageS

Threaded View

  1. #2
    Huygens to Titan PCRIDE's Avatar
    Join Date
    May 2002
    Location
    PLUTO
    Posts
    1,335
    you have to use PHP at least, here is the code to build an array

    PHP Code:
    [SIZE=3]

    <?
     $pictures = array("pic1.jpeg" , "pic2.jpeg" , "pic3.jpeg" , "pic4.jpeg" , "pic5.jpeg" , "pic6.jpeg" , "pic7.jpeg" );
      shuffle($pictures);
    ?>
    <HTML>
    <HEAD>
    <title>Your page name</TITLE>
    </head>
    <BODY>
     <CENTER>
    <H1> your page here</H1>
    <table width = 100%>
    <tr>

    <?
     for ( $i = 0; $i < 3;  $i++ )
    {
       echo"<td align = center><img src=\"";
       echo $pictures[$i];
       echo "\" width = 100 height = 100></td>";
    }
    ?>

    </tr>
    </table>
    </body>
    </HTML>
    [/SIZE]
    Last edited by PCRIDE; 04-07-2004 at 02:55 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center