Results 1 to 6 of 6

Thread: Drop-Down box image changer

  1. #1
    Join Date
    Jun 2006
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Drop-Down box image changer

    Hello again, im afraid i need a little more help with something. I got the calculate price script to work now, but im having problems with the image changing script. Im trying to make a site where you can customize a computer with a series of drop-down boxes, and when you choose a selection, it shows the image of the product. An example is here:

    http://www.oharanetworks.com/jcr/build/test.htm

    However, only the beginning of this script works. I cant figure out how to make the image change when a different product is selected. In the example above, only the second item works, when i want to go back and select the initial item the image stays the same.

    Anyhelp would be great. Thanks again in advance.

  2. #2
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    I know this doesn't help.

    Code:
    //Specify image paths and optional link (set link to "" for no link):
    var dynimages=new Array()
    dynimages[0]=["aspirexdb.png", ""]
    dynimages[1]=["aspirexds.png", ""]
    dynimages[2]=["photo3.jpg", ""]
    you have four images bring shown you have said that there is three.
    And photo3.jpg is not an actual photo.

  3. #3
    Join Date
    Jun 2006
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I know, I didn't even bother changing that, I just need help with the changing part:

    Code:
    <select size="1" name="D5" onchange="this.form.price1.value=this.options[this.selectedIndex].value;calculate(); modifyimage('dynloadarea', 1)">
    <option value="70.00" selected>ASPIRE X-DISCOVERY - Black Steel ATX Mid Tower [Included in Price] </option>
    <option value="70.00">ASPIRE X-DISCOVERY - Silver Steel ATX Mid Tower [Add $0] </option>
    <option value="70.00">ASPIRE X-DISCOVERY - Blue Steel ATX Mid Tower [Add $0] </option>
    <option value="70.00">ASPIRE X-DISCOVERY - Yellow Steel ATX Mid Tower [Add $0]
    </option>
    </select>
    This code only allows you to change the product once and the picture will change, if you try to choose another option, the picture just stays the same.

    Thanks. Please help.

  4. #4
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Not exactly sure then, but I would at least go ahead and fix the image part.

  5. #5
    Join Date
    Jun 2006
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok, i changed the images to what they are supposed to be. But now, how do i change the code to make it work?

    ALL HELP APPRECIATED. THANKS.

  6. #6
    Join Date
    Jun 2006
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Someone please help!!

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
  •