...

View Full Version : do pop ups work with image maps



thickandthin
09-23-2002, 09:22 PM
do pop ups work with image maps, if so whats wrong with this coding:

<html>
<head>
<title>Vice City Source</title>



<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=600');");
}
// End -->
</script>

</head>

<body bgcolor=ccffcc>
<center>
<img src="radio1.gif">
<br><font face="verdana" size=2>
To listen to each radio station click on one of the red buttons at the top with the station name on it!
<MAP name="mymap">
<IMG SRC="radiomap.gif" USEMAP="#mymap" border=0>

<AREA SHAPE="DEFAULT" HREF="javascript:popUp('espantoso.html')" COORDS="442,70,506,85" alt="Radio Espantoso -> Jazz/Latin -> TBA">
</map>
</body>
</html>

thickandthin
09-23-2002, 10:48 PM
can anyone help????

umm
09-23-2002, 10:49 PM
They sure do, but I was wondering why you needed the 'page' variable holding the time? --edit-- Anyway, try this out (change the popup parameters,links and map coords to suit your own). It's the wrong forum but hey...


<html>
<head>
<title>Image Map Popups</title>
<script language="javascript" type="text/javascript">
<!-- ;
var page
function popUp(url) {
page=window.open('','myWin','width=300,height=300');
page.location.href=url
page.focus()
}
// -->
</script>
</head>
<body>
<A href="#"><img src="images/rout.gif" ismap usemap="#mymap"></a>
<map name="mymap">
<AREA SHAPE="rect" HREF="javascript: void popUp('SOME.HTML')"
COORDS="3,2,27,28" alt="Radio Espantoso -> Jazz/Latin -> TBA">
<AREA SHAPE="rect" HREF="javascript: void popUp('SOME.HTML')"
COORDS="40,2,58,24" alt="Radio Espantoso -> Jazz/Latin -> TBA">
</map>
</body>
</html>

thickandthin
09-24-2002, 02:36 AM
thanks so much!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum