Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts

    do pop ups work with image maps

    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="javascriptopUp('espantoso.html')" COORDS="442,70,506,85" alt="Radio Espantoso -> Jazz/Latin -> TBA">
    </map>
    </body>
    </html>
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    can anyone help????
    Please visit http://www.thickandthinpizza.com and tell me what you think.

  • #3
    umm
    umm is offline
    Regular Coder
    Join Date
    Sep 2002
    Location
    Antipodes
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>
    Last edited by umm; 09-23-2002 at 11:59 PM.

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks so much!
    Please visit http://www.thickandthinpizza.com and tell me what you think.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •