HTML Image 2

asp.net html 控件 

html image 2


<script  runat="server">

sub choose_image(sender as object, e as eventargs)
   image1.src = select1.value
end sub
</script>


<!doctype html>
<html>
<body>

<form runat="server">
<select id="select1" runat="server">
   <option value="smiley.gif">smiley</option>
   <option value="angry.gif">angry</option>
   <option value="stickman.gif">stickman</option>
</select>
<input type="submit" runat="server" value="display image"
onserverclick="choose_image">
<br><br>
<img id="image1" src="smiley.gif" runat="server" width="32" height="32" />
</form>

</body>
</html>
相关文章