<asp:ImageMap AccessKey="string" AlternateText="string" BackColor="color name|#dddddd" BorderColor="color name|#dddddd" BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset" BorderWidth="size" CssClass="string" DescriptionUrl="uri" Enabled="True|False" EnableTheming="True|False" EnableViewState="True|False" ForeColor="color name|#dddddd" Height="size" HotSpotMode="NotSet|Navigate|PostBack|Inactive" ID="string" ImageAlign="NotSet|Left|Right|Baseline|Top|Middle|Bottom| AbsBottom|AbsMiddle|TextTop" ImageUrl="uri" OnClick="Click event handler" OnDataBinding="DataBinding event handler" OnDisposed="Disposed event handler" OnInit="Init event handler" OnLoad="Load event handler" OnPreRender="PreRender event handler" OnUnload="Unload event handler" runat="server" SkinID="string" Style="string" TabIndex="integer" Target="string" ToolTip="string" Visible="True|False" Width="size" > <asp:CircleHotSpot AccessKey="string" AlternateText="string" HotSpotMode="NotSet|Navigate|PostBack|Inactive" NavigateUrl="uri" PostBackValue="string" Radius="integer" TabIndex="integer" Target="string|_blank|_parent|_search|_self|_top" X="integer" Y="integer" /> <asp:PolygonHotSpot AccessKey="string" AlternateText="string" Coordinates="string" HotSpotMode="NotSet|Navigate|PostBack|Inactive" NavigateUrl="uri" PostBackValue="string" TabIndex="integer" Target="string|_blank|_parent|_search|_self|_top" /> <asp:RectangleHotSpot AccessKey="string" AlternateText="string" Bottom="integer" HotSpotMode="NotSet|Navigate|PostBack|Inactive" Left="integer" NavigateUrl="uri" PostBackValue="string" Right="integer" TabIndex="integer" Target="string|_blank|_parent|_search|_self|_top" Top="integer" /> </asp:ImageMap>
<%@ Page Language="VB" %> <script runat="server"> Sub ImageMap1_Click(sender As Object, e As ImageMapEventArgs) Me.lblText1.Text = e.PostBackValue End Sub </script> <html> <head> </head> <body> <form runat="server"> <asp:ImageMap id="ImageMap1" onclick="ImageMap1_Click" runat="server" HotSpotMode="PostBack" Width="300" ImageUrl="Myfiles/mygirl.jpg"> <asp:RectangleHotSpot Top="0" Bottom="225" Left="0" Right="150" AlternateText="Title 1" PostBackValue="Select 1" /> <asp:RectangleHotSpot Top="0" Bottom="225" Left="151" Right="300" AlternateText="Title 2" PostBackValue="Select 2" /> </asp:ImageMap> <hr /> <asp:Label id="lblText1" runat="server"></asp:Label> </form> </body> </html>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท