1 Reply Latest reply on Oct 2, 2006 4:36 PM by Newsgroup_User

    Displaying different image when page loads

    jtkunle
      Anyone knows how to display a different image each time a page loads? any suggestions will be very much appreciated.

      Thanks in advance.
        • 1. Re: Displaying different image when page loads
          Level 7


          jtkunle wrote:
          > Anyone knows how to display a different image each time a page loads? any suggestions will be very much appreciated.

          You could make an empty SWF files with simple loadMovie action loading random images.
          Assuming images are named image0.jpg image1.jpg image3.jpg etc...
          All you need is the following action on first frame of the timeline:

          randImage = Math.round(Math.random()*5);
          loadMovieNum("image"+randImage".jpg", 1);

          the *5 define the random range, more images, change the number.





          --
          Best Regards

          Urami


          --


          <urami>
          If you want to mail me - DO NOT LAUGH AT MY ADDRESS
          </urami>