Fred12
04-11-2011, 10:48 AM
hi,
ich möchte in einer Option select box mit mehreren optionen
wenn ich eine Option auswähle, dass sich das dazugehörige bild dazu ändert,
also beispiel:
<tr><td>Neigung des Solarpanels</td>
<td><form name="test"><select name="Solarpanel" size="1">
<option name="0">0</option>
<option name="1" >5</option>
<option name="2">10</option>
<option name="3">15</option>
<option name="4">20</option>
<option name="5">25</option>
<option name="6">30</option>
<option name="7">35</option>
<option name="8">40</option>
<option name="9">45</option>
<option name="10">50</option>
<option name="11">55</option>
<option name="12">60</option>
<option name="13">70</option>
<option name="14">80</option>
<option name="15">90</option>
</select></form>
</td>
<td>Grad</td>
<td><img src="http://www.XXXX.html" TITLE="Solarpanels" />
</td>
<tr>
also wenn ich neigung solarpanel 60° anwähle soll sich das bild zu 60° SOlarpanel ändern... ich hab zu jeder option dazu ein eigenes Bild...
wie kann ich machen dass sich die Bilder alle auf der GLEICHEN Position auf der Webseite ändert? also bild 1 wird dann durch bild 2 ersetzt bei optionsauswahl usw...
IN ENGLISH:
I want to change a picture when I choose an item in a select box ...
this picture has to be on the same place as previous picture..so if I choose option 1 -> picture 1 ; option 2 -> picture 2 but the picture has to remain on same spot like the picture before , ok?
example given is the one on top... it can be done in HTML / JAVA / Jquery or whatever....
hope u can help me, thx!
ich möchte in einer Option select box mit mehreren optionen
wenn ich eine Option auswähle, dass sich das dazugehörige bild dazu ändert,
also beispiel:
<tr><td>Neigung des Solarpanels</td>
<td><form name="test"><select name="Solarpanel" size="1">
<option name="0">0</option>
<option name="1" >5</option>
<option name="2">10</option>
<option name="3">15</option>
<option name="4">20</option>
<option name="5">25</option>
<option name="6">30</option>
<option name="7">35</option>
<option name="8">40</option>
<option name="9">45</option>
<option name="10">50</option>
<option name="11">55</option>
<option name="12">60</option>
<option name="13">70</option>
<option name="14">80</option>
<option name="15">90</option>
</select></form>
</td>
<td>Grad</td>
<td><img src="http://www.XXXX.html" TITLE="Solarpanels" />
</td>
<tr>
also wenn ich neigung solarpanel 60° anwähle soll sich das bild zu 60° SOlarpanel ändern... ich hab zu jeder option dazu ein eigenes Bild...
wie kann ich machen dass sich die Bilder alle auf der GLEICHEN Position auf der Webseite ändert? also bild 1 wird dann durch bild 2 ersetzt bei optionsauswahl usw...
IN ENGLISH:
I want to change a picture when I choose an item in a select box ...
this picture has to be on the same place as previous picture..so if I choose option 1 -> picture 1 ; option 2 -> picture 2 but the picture has to remain on same spot like the picture before , ok?
example given is the one on top... it can be done in HTML / JAVA / Jquery or whatever....
hope u can help me, thx!