This article describes the method of selecting the picture to be displayed by js pull-down box. Share it for your reference. The specific implementation method is as follows:
<html><title>Drop-down box selects the picture to be displayed</title><body><img width=320 height=240 src="images/m01.jpg" name="x1"> <SELECT onChange="document.x1.src=options[selectedIndex].value"> <option value="images/m04.jpg">Rape flowers bloom</option> <option value="images/m03.jpg">Past events are like tea</option> <option value="images/m02.jpg">Wild flowers bloom</option> <option value="images/m01.jpg">Red leaves convey their emotions</option> </SELECT> </body></html>
I hope this article will be helpful to everyone's JavaScript programming.