PDA

View Full Version : Image Selector Help



Trin
07-07-2005, 06:55 AM
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/dynamicindex4/imageselector.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.

jscheuer1
07-07-2005, 08:07 AM
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.