SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2006
    Location
    VA
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Image Map and pop up.

    I recently reviewed the article regarding resizing a popup in a new window. I have ALMOST got the code right...but it isn't working exactly.

    I am using a .jpg image on my web page as an image map. When clicking on the image I want the picture to popup in a window that is at the appropriate size to the image.

    From my .jpg image page:

    http://www.torrephotography.com/gallery_1test.html page I have the following as the reference to the image in the popup.html page.

    <map name="Map">
    <area shape="rect" coords="14,20,193,134" href="javascript:PopupPic('images/Gallery_1/018.jpg')">

    When I load the page to the server, and click on the image...the popup page says it can't find the image. Am I missing something in the 'pointing' of the image url?

    Thanks!
    Lynn
    ~:*:~ Lynn ~:*:~
    www.primitivecountrygraphics.com, www.keenwebdesign.com,
    I SING: www.lynnkeen.com, TRAVEL GUIDES: www.dcandaway.com
    ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~ ~*~

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    Instead of
    HTML Code:
    window.open( "popup.htm?"+sPicURL, "",
    try
    window.open( "popup.html?"+sPicURL, "",

  3. #3
    SitePoint Member
    Join Date
    Dec 2008
    Location
    USA
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because this is the URL it's trying to open.
    http://www.torrephotography.com/popu...lery_1/018.jpg
    So the problem is with your code. Post it.


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
  •