View Full Version : dropdown linked to image thumbs
02-18-2007, 07:44 AM
How would this work:
A dynamically generated dropdown box that will display something like
Next to it I need to display image thumbnail.
I would think the easiest way would be to name jpegs A.jpg B.jpg C.jpg
When A is selected, it would go and pick up a corresponding image and display it.
Entire solution would be really nice, if you've got time for this.
02-19-2007, 09:33 AM
How about this:
you name your images as you said
you keep them all in a specified folder
you populate your dropdown by getting a list of files in that folder
02-19-2007, 02:38 PM
Straight ASP, no...
02-19-2007, 05:25 PM
Was hoping for a snippet.
02-19-2007, 05:38 PM
u got lucky, i had a script that i made a while back laying around.
var strImageName = myForm.SelectImage;
document.getElementById("DisplayThumb").innerHTML = "<img src='images/" + strImageName.value + "' />"
<select name='SelectImage' id='SelectImage' onchange='DisplayImage(this.form)'>
<div name='DisplayThumb' id='DisplayThumb'></div>
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.