C
Chris Chamberlain
Hi,
I'm currently generating client-side imagemaps using PlaceHolders and
HtmlGenericControls. This allows me to add attributes for onmouseover and
onmouseout events onto the <area> hotspots themselves, eg:
<map name="mapNav">
<area shape="RECT" coords="0,0,119,14" alt="information about buying a
property in france" href="file1.aspx" onmouseover="mapOver(1,true)"
onmouseout="mapOver(1,false);"></area>
<area shape="RECT" coords="0,14,119,28" alt="information about regions
in france and the partner offices" href="file2.aspx"
onmouseover="mapOver(2,true)" onmouseout="mapOver(2,false);"></area>
<area shape="RECT" coords="119,0,238,14" alt="property for sale in
france" href="file3.aspx" onmouseover="mapOver(3,true)"
onmouseout="mapOver(3,false);"></area>
</map>
I have just discovered the asp:ImageMap webcontrol and the associated
RectangleHotSpot and am trying to reproduce the above using these controls.
However, the RectangleHotSpot control will not allow me to add attributes to
itself, hence I am unable to add individual onmouseover and onmouseout
events for each of the hotspots.
Does anyone have a way around this? Am I missing something obvious?
Kind regards
Chris Chamberlain
Head of IT
VEF (UK) Ltd
Ground Floor City Reach
5 Greenwich View Place
Millharbour
London E14 9NN
Tel: (00 44) (0)20 7515 8660
Fax: (00 44) (0)20 7515 5070
URL: www.vefuk.com
I'm currently generating client-side imagemaps using PlaceHolders and
HtmlGenericControls. This allows me to add attributes for onmouseover and
onmouseout events onto the <area> hotspots themselves, eg:
<map name="mapNav">
<area shape="RECT" coords="0,0,119,14" alt="information about buying a
property in france" href="file1.aspx" onmouseover="mapOver(1,true)"
onmouseout="mapOver(1,false);"></area>
<area shape="RECT" coords="0,14,119,28" alt="information about regions
in france and the partner offices" href="file2.aspx"
onmouseover="mapOver(2,true)" onmouseout="mapOver(2,false);"></area>
<area shape="RECT" coords="119,0,238,14" alt="property for sale in
france" href="file3.aspx" onmouseover="mapOver(3,true)"
onmouseout="mapOver(3,false);"></area>
</map>
I have just discovered the asp:ImageMap webcontrol and the associated
RectangleHotSpot and am trying to reproduce the above using these controls.
However, the RectangleHotSpot control will not allow me to add attributes to
itself, hence I am unable to add individual onmouseover and onmouseout
events for each of the hotspots.
Does anyone have a way around this? Am I missing something obvious?
Kind regards
Chris Chamberlain
Head of IT
VEF (UK) Ltd
Ground Floor City Reach
5 Greenwich View Place
Millharbour
London E14 9NN
Tel: (00 44) (0)20 7515 8660
Fax: (00 44) (0)20 7515 5070
URL: www.vefuk.com