Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form name="obrazki" onchange="info()">
- <p id="obr">
- <img src="RYSUNKI/CD.JPG" ></p><br>
- <select name="wybor">
- <option selected>Płyta CD</option>
- <option>
- Waltornia
- </option>
- <option>
- Nuty
- </option>
- </select>
- </form>
- <script type="text/javascript">
- function info()
- {
- if (document.obrazki.wybor.selectedIndex == 0 )
- {
- document.getElementById('obr').innerHTML = "<img src=\"RYSUNKI/CD.JPG\">";
- }
- if (document.obrazki.wybor.selectedIndex == 1 )
- {
- document.getElementById('obr').innerHTML = "<img src=\"RYSUNKI/horn.JPG\">";
- }
- if (document.obrazki.wybor.selectedIndex == 2 )
- {
- document.getElementById('obr').innerHTML = "<img src=\"RYSUNKI/tour.JPG\">";
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement