#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Nuevo Mexico, U.S.
    Posts
    86
    Rep Power
    13

    Random image javascript question


    I found a random image script and it works just fine. I'd like to make each random image a hyperlink pointing to a page corresponding to the image. Thus, if shirt A's image is displayed, the hyperlink would point to shirt A's web page.

    Is there any way to make the anchor's "href" a variable so that it would point to the appropriate page depending on the image?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Nuevo Mexico, U.S.
    Posts
    86
    Rep Power
    13
    Thanks for the quick reply. As you can probably tell from my post count , I'm a little new to this.

    I build PCs and work as a Sr. Programmer/Analyst but not in Web Programming...yet!

IMN logo majestic logo threadwatch logo seochat tools logo