[Javascript] <SELECT value=image???>
Peter Lauri
lists at dwsasia.com
Mon Aug 21 12:44:42 CDT 2006
Two options that you can consider:
1. Use three different divs with different id and then just control their
visibility with css (document.getElementById("theid").style.visibility =
"hidden"/"visible")
2. Use and XMLHttpRequest (AJAX) to load the correct image using <SELECT
onChange="functionToGetImageWithAJAX();">
-----Original Message-----
From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of tedd
Sent: Tuesday, August 22, 2006 12:39 AM
To: [JavaScript List]
Subject: [Javascript] <SELECT value=image???>
Hi gang:
Does anyone have any references, or code, where a SELECT tag in a
html doc can be used to show small images (i.e., thumbnails)?
In other words, instead of having the SELECT tag show different
*text* options -- have it show *image* options instead?
Something like this:
<SELECT NAME="images">
<OPTION VALUE="a"><img src="a.jpg" alt="" height="84" width="112"
border="0"><br/>
<OPTION VALUE="b"><img src="b.jpg" alt="" height="84" width="112"
border="0"><br/>
<OPTION VALUE="c"><img src="c.jpg" alt="" height="84" width="112"
border="0"><br/>
</SELECT>
Except it would work to show images.
Thanks in advance for any ideas, or suggestions.
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list