Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    ito
    ito is offline
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    trying to find a script for a long time

    Hello

    I'm trying to find a random images javascript.

    what i want to do ,is to take a deck of 78 card and put it in vertical table,so that each time i will refreash the page it will show me 3 different images,without repeating it self.

    how could i make it possible?

    thank you.

    ito
    Last edited by ito; 08-27-2006 at 02:52 AM.

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by ito
    hello

    i'm trying to find a random images javascript for three vertical different images, that taken from one deck of card.

    how could i make it possible?
    Just write a routine that generates an array of three unique numbers in the range 0-51, then use those values to select the source image name from the card array for each of the three image placeholders.


  •  

    Posting Permissions

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