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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Melbourne, Australia
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh Image Map Popups

    Greetings all!
    Whilst I don't have a problem with opening a popup, my request is that I have not been able to work out a way of making each hot spot in an image map link to a custom sized popup window. If it would help, the url of the page with the image map is: http://www.arden.com.au/seating.html
    Thanks in anticipation

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmmm.... not too sure but you could try putting this into the <head>:

    Code:
    <script language="javascript">
    function openWin(winURL,winHeight,winWidth) {
       var winScrollbars = "yes";
       var winToolbar = "no";
       var winSizeable = "yes";
    window.open(winURL,"","width="+winWidth+",height="+winHeight+",scrollbars="+winScrollbars+",toolbars="+winToolbar+",sizeable="+winSizeable)}
    </script>
    and adapt this for each entry on the map:
    Code:
    <map>
    <area shape="..." coords="..." href="javascript:openWin('page.html','HEIGHT','WIDTH')" alt="..." title="...">
    </map>
    change "page.html" to the page, "HEIGHT" to the height you want the window to be, and "WIDTH" to the width you want it to be. Not to sure if it'll work though ;)

    good luck

    Edit: there should be no space in the javascript:openWin(...) but this forum put one in...
    Last edited by redhead; 06-15-2002 at 02:42 PM.
    redhead

  • #3
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Melbourne, Australia
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Redhead
    Thank you very much for the script. At first it did not work, but your edit fixed that problem. Works like a treat.
    Thanx again


  •  

    Posting Permissions

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