I have tried to add a Virtual Earth Map into a new page. I integrated the Virtual Earth JavaScript into the template.Master Head as follows:
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Custom Residency</title>
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.
js"> /* <![CDATA[ */
function AdjustColumnsHeight()
{
// get a reference to the three DIVS that make up the columns
var centerCol = window.document.getElementById('centercol');
var leftCol = window.document.getElementById('leftcol');
var rightCol = window.document.getElementById('rightcol');
// calculate the max height
var hCenterCol = centerCol.offsetHeight;
var hLeftCol = leftCol.offsetHeight;
var hRightCol = rightCol.offsetHeight;
var maxHeight = Math.max(hCenterCol, Math.max(hLeftCol, hRightCol));
// set the height of all 3 DIVS to the max height
centerCol.style.height = maxHeight + 'px';
leftCol.style.height = maxHeight + 'px';
rightCol.style.height = maxHeight + 'px';
// Show the footer
window.document.getElementById('footer').style.vis ibility = 'inherit';
}
window.onload = function() { AdjustColumnsHeight(); }
/* ]]> */
</script>
</head>
Unfortunately, the css causes the interavtive pop up menu on the virtual earth map to move 200px to the right of the pushpin because the template.Master codes <div id="centercol">
The below code out of the css file
#centercol
{
position: relative;
margin-left: 200px;
padding: 0px;
background-color: white;
}
If I set the margin-left to 0px the virtual earth menu aligns with the pushpin, but I loose the left column altogether.
Can anyone help????