Help JavaScript Popup Within ASP Page

admin

Administrator
Staff member
Hey all, I am building a site that has a map of the US. The map is marked by 50 different hotspots. What I am trying to do is within the hotspot, once it is clicked, open a pop up window and pass the asp URL in the window.

My code to call the onclick is as follows is as follows:


<area shape="poly" coords="16,81,11,93,12,112,18,127,22,147,26,163,34,167,41,175,47,184,49,191,68,192,75,185,77,180,79,172,41,1 21,49,88,16,78,15,81" href=http://www.webdeveloper.com/forum/archive/index.php/"javaScript:;" onClick="MM_openBrWindow('/states/state.asp?state=CA','map','width=400,height=600')">

My function is:

<script language="JavaScript">
function MM_openBrWindow(theURL,winName,features)
window.open(theURL,winName,features);
</script>


Any help you can provide me with would be appreciated.

Thanks
 
Back
Top