|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have a page with a picture in the center.
i need to have a drop down box with 4 options. when i click on a button 'show' the picture changes according to the option chosen. please help!!!! |
|
#2
|
|||
|
|||
|
create a function called via onClick (in the show button) that changes the picture. The adress of the pictures should be contained in the "value" of every element of the list; that is:
<form name="Selects"> <select name="Plants" size="1"> <option value="img/rose.gif">rose</option> <option value="img/tree.jpg">tree</option> </select> and ... onClick="changefn(originalimg, document.Selects.Plants[document.Selects.Plants.selectedIndex].value) Hope it works |
|
#3
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > changing picture through drop down box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|