Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When I first tried ImageMapster, I didn't set the path correctly. Your area path has to wrap around the object from top to bottom, then left to right, then bottom to top until it meets again at the start. Once I did that, ImageMapster "did something". Before I had the path right, it looked like nothing was going on. </p> <p>You also have to tell the <code>image</code> to use the <code>map</code>.</p> <pre><code>&lt;div id="mapblock"&gt; &lt;img id="map_image" src="/images/map.png" usemap="#map_map"/&gt; &lt;map name="map_map"&gt; &lt;area data-key="AZ" full="item" href="#" coords="... " shape="poly" /&gt; &lt;/map&gt; &lt;/div&gt; </code></pre> <p>Also, the ID# that you use in the code ought to be the ID of an <code>image</code>, not the ID of a map.</p> <p>Also, make sure your map areas are WITHIN the image (you might have to set the <code>width</code> of the image, you know) else the hover effects won't show. When I first tried it, I didn't see anything until I made sure my areas were in the right places.</p> <p>I wrote a <a href="https://stackoverflow.com/questions/13845958/how-to-get-the-path-coordinates-of-a-shape-for-use-with-image-maps">mini-tutorial here</a> for generating the <code>image-map</code> with Photoshop and Illustrator. This worked very well for me, and the <code>image-map</code> was in the exact perfect place.</p> <p><strong>[after OP posted imagemap html]</strong></p> <blockquote> <p><code>&lt;area title="Portable 1" onclick="somefunction" coords="198,81,223,117" /&gt;</code></p> </blockquote> <p>Ah, your coords much match, I think. Think of the coords as a line. You have described the start of the line plus one other point - you have to tell it to make a full loop. Try this instead and see what happens:</p> <p>'coords="198,81, 223,117, 198,81"</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload