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 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Combo Boxes and Images

    I have a combo box which has a number of items within it, what I would like to know is wether it is possible to asign an different image to each selection.

    Not within the combo box, but by the side, so that when a user chooses a particular item, the image changes also.

    Gazzer

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    <select onChange="PreviewImage.src='this.value'">
    <option value="images/img1.gif">Preview Gif 1</option>
    <option value="images/img2.gif">Preview Gif 2</option>
    <option value="images/img3.gif">Preview Gif 3</option>
    </select>
    <img name=PreviewImage" src="images/firstimg.gif">
    Omnis mico antequam dominus Spookster!

  • #3
    New Coder
    Join Date
    Oct 2002
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Thanks for that little gem of code, I can at least have a better chance now.

    Cheers.

    gazzer


  •  

    Posting Permissions

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