Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
</head>
<body>
<map name="Map" id="Map">
<area shape="rect" coords="113,200,300,240" href="product_cost.aspx#config" />
<area shape="rect" coords="360,300,523,331" href="product_readiness.aspx#performance" />
<area shape="rect" coords="340,201,484,232" href="product_readiness.aspx#capacity" />
<area shape="rect" coords="528,198,754,231" href="product_agility.aspx#blueprint" />
<area shape="rect" coords="607,235,707,264" href="product_agility.aspx#appsupport" />
<area shape="poly" coords="140,149,335,148,297,456,43,457,140,148" href="product_cost.aspx" />
<area shape="poly" coords="351,147,327,447,579,448,550,147,352,147" href="product_readiness.aspx" />
<area shape="poly" coords="601,448,559,150,760,148,849,446,600,448" href="product_agility.aspx" />
<area shape="rect" coords="8,460,893,635" href="product_platform.aspx" />
<area shape="rect" coords="45,29,742,145" href="product_lenses.aspx" />
</map>
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
function MagCoords(id,mag){
var map=document.getElementById(id);
var as=map.getElementsByTagName('AREA');
alert(as[0].coords); // debug only
for (var ary=[],coords,z0=0;z0<as.length;z0++){
ary[z0]=[];
coords=as[z0].coords.split(',')
for (var z0a=0;z0a<coords.length;z0a++){
ary[z0].push(coords[z0a]*mag);
}
}
for (var z1=0;z1<as.length;z1++){
as[z1].coords=ary[z1].join(',');
}
alert(as[0].coords); // debug only
}
MagCoords('Map',1.5)
/*]]>*/
</script>
</body>
</html>
Bookmarks