Hi Folks,
I'v got a map of a line that is being debated. A contractor has created a series of maps at a larger scale all along the path of the line showing exactly where it lies in areas where it twists and turns alot.
I have a JPEG of the main map set up as an image map, and the area tage links to the PDFs of the large scale drawings.
function newWindow(url, target)
{comWin = window.open(url, target, "scrollbars=0,resizable=0,height=350,width=375,status=0,directories=0,menubar=0,toolbar=0");
comWin.focus();
comWin = null;}
<IMG src="Images/MainMapImage.jpg" usemap="#map" border=0>
<map id="map" name="MainMapImage">
<area shape="rect" coords="73,191,80,199" href="Maps/LargeScaleDrawingEx01.pdf" onclick="newWindow(this.href, this.target);return false" target="_blank"/>
</map>
I have been asked to add a second image that will house a simplifed/preview image of each drawing, and will display the image that coresponds to where the user is hovering (if they are on or near the line).
I realize I need to add an image tag to display the preview images, and I need to add an onMouseOver event to the Area tags that calls a function.... But I have no idea how to make that second image tag dynamically accept what the JS function spits out, and really no idea where to start with the JS function
If anyone has something along these lines to start me off I'd really appreciate any help.
I'v got a map of a line that is being debated. A contractor has created a series of maps at a larger scale all along the path of the line showing exactly where it lies in areas where it twists and turns alot.
I have a JPEG of the main map set up as an image map, and the area tage links to the PDFs of the large scale drawings.
function newWindow(url, target)
{comWin = window.open(url, target, "scrollbars=0,resizable=0,height=350,width=375,status=0,directories=0,menubar=0,toolbar=0");
comWin.focus();
comWin = null;}
<IMG src="Images/MainMapImage.jpg" usemap="#map" border=0>
<map id="map" name="MainMapImage">
<area shape="rect" coords="73,191,80,199" href="Maps/LargeScaleDrawingEx01.pdf" onclick="newWindow(this.href, this.target);return false" target="_blank"/>
</map>
I have been asked to add a second image that will house a simplifed/preview image of each drawing, and will display the image that coresponds to where the user is hovering (if they are on or near the line).
I realize I need to add an image tag to display the preview images, and I need to add an onMouseOver event to the Area tags that calls a function.... But I have no idea how to make that second image tag dynamically accept what the JS function spits out, and really no idea where to start with the JS function
If anyone has something along these lines to start me off I'd really appreciate any help.