Results 1 to 2 of 2

Thread: Image Selector Help

  1. #1
    Join Date
    Jul 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Selector Help

    Hi I am trying to use your image selector script in a form of mine.

    The script I am trying to use is http://www.dynamicdrive.com/dynamici...geselector.htm

    I currently have a form with a dropdown box of products, they select a product to order, finish the rest of the form and there done. What I want to do is when they select the product an image of the product appears and then they finish the form.

    Now this script seems perfect, but it uses the value field in the dropdown box option tag. I already use this forom to store my product code.

    Now what I need to know is, is there any way around this, can I put this image URL in another kind of tag, or can I put both in the value tag, or something. It would be really great if someone had an answer out there regarding this.

    Thank you
    Trin.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You can use the id attribute instead of the value attribute for the options/display routine. To do this, simply change every (there is one deep in the code of the script that you could miss, and don't forget the one in the onChange event) occurrence of the word 'value' in the script and its markup (the HTML part) to 'id'. This will free up 'value' to be used for your other purpose.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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