Skip navigation
Currently Being Moderated

Image Hotspot Coord Problems

May 21, 2012 8:25 AM

Hello,

 

I am always running into problems and the recent of which is the image hotspot Coord, I have set up an image to change it's size to fit the screen and the image needs hotspots to link it up to the sites:

http://screensnapr.com/e/tO28Qu.jpg

When I view the site in a broweser the coord of the hotspots do not change to match the new image size. Have a look here: http://dl.dropbox.com/u/49665279/index.html

 

Code:

 

<title>Saber Rider - Index</title>


<style type="text/css">
body p {
          text-align: left;
}
#wrapper {
          position:absolute;
          width:100%;
          height:100%;
          z-index:1;
          left: 0;
          top: 0;
}
</style>
</head>


<body>
<div id="wrapper">
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <td width="200"><img src="Images/webpage_BG_left.jpg" width="200" height="1200" /></td>
      <td width="100%"><img src="Images/webpage_header.jpg" width="100%" height="180" /><img src="Images/webpage_content.jpg" width="100%" height="690" border="0" usemap="#Map" />
      <img src="Images/webpage_footer.jpg" width="100%" height="330" /></td>
      <td width="200"><img src="Images/webpage_BG_right.jpg" width="200" height="1200" /></td>
    </tr>
  </table>
</div>


<map name="Map" id="Map"><area shape="rect" coords="547,60,576,97" href="#" /><area shape="rect" coords="575,60,604,97" href="#" /><area shape="rect" coords="720,60,749,96" href="#" /><area shape="rect" coords="692,60,719,98" href="#" /><area shape="rect" coords="662,60,693,98" href="#" /><area shape="rect" coords="632,60,663,98" href="#" /><area shape="rect" coords="604,60,633,97" href="http://www.youtube.com" />
  <area shape="rect" coords="719,60,750,98" href="#" />
</map>
</body>
</html>

 
Replies
  • Currently Being Moderated
    May 21, 2012 11:21 AM   in reply to drunkmafia

    Image Map Hotspots are static. It is impossible for the coordinates to re-scale with % based layouts.

    Use individual images instead of image maps.

     

    <img src="facebook.jpg"> <img src="twitter.jpg"> <img src="youtube.jpg"> and so on....

     

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 1:07 PM   in reply to Nancy O.

    Accoding to the reference index within DW, for the "area" attribute it says.....

     

    " it's not uncommon to use client side area maps in a navigation bar occupying a slender frame of a frameset.  This allows an artist to be creative with a menu design, while giving the page author the power to turn any segment of a larger image into a special purpose link." 

     

    I just noticed this and it seems relevant!

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 8, 2012 1:35 PM   in reply to JFWily2

    Must be a very OLD article then.  Image maps for navigation were common in the late 90's as were FRAMES and framesets.  Nobody builds web sites this way anymore.

     

    Frames are Evil

    http://apptools.com/rants/framesevil.php

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points