请问在default.aspx里面的图的热点是怎么实现的,default.aspx 里面的html里面的代码是不是都是都是手写的吗???
下面都是手写的吗
%@ Page Language="c#" AutoEventWireup="false" enableSessionState="ReadOnly"%>
<%@ Register TagPrefix="PetsControl" TagName="Banner" Src="Controls/Banner.ascx" %>
<%@ Register TagPrefix="PetsControl" TagName="NavBarNoMenu" Src="Controls/NavBarNoMenu.ascx" %>
<HTML>
<HEAD> <title>PetShop</title>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="Styles.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td valign="top">
<PetsControl:navbarnomenu id="header" hidecategorymenu="true" runat="server"></PetsControl:navbarnomenu>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="4" valign="top"><img alt="" src="Images/lizardC.gif" width="210" height="74"></td>
<td rowspan="2" valign="top">
<img src="Images/space.gif" width="1" height="26"><br>
<map name="mainMap">
<area href="Category.aspx?categoryId=BIRDS" alt="Birds" coords="408,133,514,239" shape="RECT">
<area href="Category.aspx?categoryId=FISH" alt="Fish" coords="2,250,108,356" shape="RECT">
<area href="Category.aspx?categoryId=DOGS" alt="Dogs" coords="108,326,214,432" shape="RECT">
<area href="Category.aspx?categoryId=REPTILES" alt="Reptiles" coords="348,254,454,358" shape="RECT">
<area href="Category.aspx?categoryId=CATS" alt="Cats" coords="242,334,348,440" shape="RECT">
<area href="Category.aspx?categoryId=BIRDS" alt="Birds" coords="280,180,350,250" shape="RECT">
</map><img src="Images/splash.jpg" usemap="#mainMap" width="548" height="466" border="0">
</td>
</tr>
<tr>
<td valign="top" width="20"><img src="Images/space.gif" width="20" height="1"></td>
<td bgcolor="#f6e19e" valign="top" width="40"><img src="Images/space.gif" width="40" height="1"></td>
<td valign="top" bgcolor="#f6e19e" width="132">
<a href="Category.aspx?categoryId=FISH" class="catLink">Fish</a><br>
<font class="text"> Saltwater<br>
Freshwater<p></p>
</font><a href="Category.aspx?categoryId=DOGS" class="catLink">Dogs</a><br>
<font class="text"> Poodle<br>
Greyhounds<p></p>
</font><a href="Category.aspx?categoryId=REPTILES" class="catLink">Reptiles</a><br>
<font class="text"> Iguanas<br>
Snakes<br>
Turtles<p></p>
</font><a href="Category.aspx?categoryId=CATS" class="catLink">Cats</a><br>
<font class="text"> Manx<br>
Persian<p></p>
<P>
</font><a href="Category.aspx?categoryId=BIRDS" class="catLink">Birds</a><br>
<font class="text"> Eclectus<br>
African Greys<br>
Macaws </font></P>
<br> <a href="WebServices.asmx" class="webServiceTestLabel">Test Web Service</a>
<p></p> </FONT><img src="Images/space.gif" width="1" height="30"><br>
</td>
<td width="20"><img src="Images/space.gif" width="20" height="1"></td>
下面都是手写的吗
%@ Page Language="c#" AutoEventWireup="false" enableSessionState="ReadOnly"%>
<%@ Register TagPrefix="PetsControl" TagName="Banner" Src="Controls/Banner.ascx" %>
<%@ Register TagPrefix="PetsControl" TagName="NavBarNoMenu" Src="Controls/NavBarNoMenu.ascx" %>
<HTML>
<HEAD> <title>PetShop</title>
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="Styles.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td valign="top">
<PetsControl:navbarnomenu id="header" hidecategorymenu="true" runat="server"></PetsControl:navbarnomenu>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td colspan="4" valign="top"><img alt="" src="Images/lizardC.gif" width="210" height="74"></td>
<td rowspan="2" valign="top">
<img src="Images/space.gif" width="1" height="26"><br>
<map name="mainMap">
<area href="Category.aspx?categoryId=BIRDS" alt="Birds" coords="408,133,514,239" shape="RECT">
<area href="Category.aspx?categoryId=FISH" alt="Fish" coords="2,250,108,356" shape="RECT">
<area href="Category.aspx?categoryId=DOGS" alt="Dogs" coords="108,326,214,432" shape="RECT">
<area href="Category.aspx?categoryId=REPTILES" alt="Reptiles" coords="348,254,454,358" shape="RECT">
<area href="Category.aspx?categoryId=CATS" alt="Cats" coords="242,334,348,440" shape="RECT">
<area href="Category.aspx?categoryId=BIRDS" alt="Birds" coords="280,180,350,250" shape="RECT">
</map><img src="Images/splash.jpg" usemap="#mainMap" width="548" height="466" border="0">
</td>
</tr>
<tr>
<td valign="top" width="20"><img src="Images/space.gif" width="20" height="1"></td>
<td bgcolor="#f6e19e" valign="top" width="40"><img src="Images/space.gif" width="40" height="1"></td>
<td valign="top" bgcolor="#f6e19e" width="132">
<a href="Category.aspx?categoryId=FISH" class="catLink">Fish</a><br>
<font class="text"> Saltwater<br>
Freshwater<p></p>
</font><a href="Category.aspx?categoryId=DOGS" class="catLink">Dogs</a><br>
<font class="text"> Poodle<br>
Greyhounds<p></p>
</font><a href="Category.aspx?categoryId=REPTILES" class="catLink">Reptiles</a><br>
<font class="text"> Iguanas<br>
Snakes<br>
Turtles<p></p>
</font><a href="Category.aspx?categoryId=CATS" class="catLink">Cats</a><br>
<font class="text"> Manx<br>
Persian<p></p>
<P>
</font><a href="Category.aspx?categoryId=BIRDS" class="catLink">Birds</a><br>
<font class="text"> Eclectus<br>
African Greys<br>
Macaws </font></P>
<br> <a href="WebServices.asmx" class="webServiceTestLabel">Test Web Service</a>
<p></p> </FONT><img src="Images/space.gif" width="1" height="30"><br>
</td>
<td width="20"><img src="Images/space.gif" width="20" height="1"></td>
<map name="mainMap">
<area href="Category.aspx?categoryId=BIRDS" alt="Birds" coords="408,133,514,239" shape="RECT">
<area href="Category.aspx?categoryId=FISH" alt="Fish" coords="2,250,108,356" shape="RECT">
<area href="Category.aspx?categoryId=DOGS" alt="Dogs" coords="108,326,214,432" shape="RECT">
<area href="Category.aspx?categoryId=REPTILES" alt="Reptiles" coords="348,254,454,358" shape="RECT">
<area href="Category.aspx?categoryId=CATS" alt="Cats" coords="242,334,348,440" shape="RECT">
<area href="Category.aspx?categoryId=BIRDS" alt="Birds" coords="280,180,350,250" shape="RECT">
</map><img src="Images/splash.jpg" usemap="#mainMap" width="548" height="466" border="0"> 关键是这段代码. DW里面的 图片属性里面有个地图的属性,可以设置圆形,矩形及多边型热点
<area href="Category.aspx?categoryId=DOGS" alt="Dogs" coords="108,326,214,432" shape="RECT">
<area href="Category.aspx?categoryId=REPTILES" alt="Reptiles" coords="348,254,454,358" shape="RECT">
<area href="Category.aspx?categoryId=CATS" alt="Cats" coords="242,334,348,440" shape="RECT">
<area href="Category.aspx?categoryId=BIRDS" alt="Birds" coords="280,180,350,250" shape="RECT">
</map><img src="Images/splash.jpg" usemap="#mainMap" width="548" height="466" border="0">