Results 1 to 3 of 3

Thread: How to click on Image Map and open New Window

  1. #1
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to click on Image Map and open New Window

    Does anybody know the code for clicking on an image map and having a new window open that is not blocked by browser popup blockers? Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,375
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    Well, if a pop up blocker is set to be really aggressive, there is no way except perhaps to use the simple html attribute, target="_blank" ex:

    Code:
    <img src="photo9.jpg" usemap="#1" border="0">
    <map name="1">
    <area shape="circle" coords="65, 57, 26" href="some.htm" target="_blank">
    <area shape="default" nohref>
    <!--  image map created with meracl imagemap generator, get it for free at http://come.to/meracl  -->
    </map>
    If, on the other hand, you are dealing with the generally default pop up settings in folks' browsers as would usually be the case on the web, and you want to script the window for greater control:

    Code:
    <img src="photo9.jpg" usemap="#1" border="0">
    <map name="1">
    <area shape="circle" coords="65, 57, 26" href="some.htm" onclick="window.open(this.href,'','width=300, height=200, top=150, left=250');return false;" target="_blank">
    <area shape="default" nohref>
    <!--  image map created with meracl imagemap generator, get it for free at http://come.to/meracl  -->
    </map>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jan 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your help. My Earthlink popup blocker still wouldn't let the window open...

Bookmarks

Posting Permissions

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