#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    4
    Rep Power
    0
    i have a page with a picture in the center.
    i need to have a drop down box with 4 options. when i click on a button 'show' the picture changes according to the option chosen. please help!!!!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    SPAIN
    Posts
    47
    Rep Power
    15
    create a function called via onClick (in the show button) that changes the picture. The adress of the pictures should be contained in the "value" of every element of the list; that is:

    <form name="Selects">

    <select name="Plants" size="1">
    <option value="img/rose.gif">rose</option>
    <option value="img/tree.jpg">tree</option>
    </select>

    and
    ...
    onClick="changefn(originalimg, document.Selects.Plants[document.Selects.Plants.selectedIndex].value)

    Hope it works
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Posts
    84
    Rep Power
    15

Similar Threads

  1. WHM account creation error messages on RH
    By borisbaloney in forum Linux Help
    Replies: 0
    Last Post: December 16th, 2003, 06:54 PM
  2. form's drop box problem
    By hwyman in forum PHP Development
    Replies: 3
    Last Post: October 31st, 2003, 02:08 PM
  3. changing the buttons in the message box
    By crackerweb in forum Visual Basic Programming
    Replies: 6
    Last Post: October 23rd, 2003, 06:36 PM
  4. Need help on changing picture size
    By Kenny115 in forum HTML Programming
    Replies: 2
    Last Post: August 13th, 2003, 02:00 PM
  5. Populate drop down box from a database but only once
    By johnstell in forum PHP Development
    Replies: 7
    Last Post: October 28th, 2002, 04:59 PM

IMN logo majestic logo threadwatch logo seochat tools logo