htmlinputimage

代碼如下:

<script  runat="server">

Sub button1(Source As Object, e As ImageClickEventArgs)

      p1.InnerHtml="You clicked the smiley button!"

End Sub

Sub button2(Source As Object, e As ImageClickEventArgs)

      p1.InnerHtml="You clicked the angry button!"

End Sub

</script>

 

<!DOCTYPE html>

<html>

<body>

 

<form runat="server">

<p>Click on one of the images:</p>

<p>

<input type="image" src="smiley.gif"

OnServerClick="button1" runat="server" width="32" height="32" />

</p>

<p>

<input type="image" src="angry.gif"

OnServerClick="button2" runat="server" width="32" height="32" />

</p>

<p id="p1" runat="server" />

</form>

 

</body>

</html>

運(yùn)行圖片:

相關(guān)文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频