Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://www.netzgesta.de/mapper/" rel="nofollow">mapper.js</a> can be used for this.</p> <blockquote> <p>Mapper.js 2.4 allows you to add automatic area highlighting to image maps on your webpages (inc. export to SVG). It works in all the major browsers - Mozilla Firefox 1.5+, Opera 9+, Safari and IE6+. On older browsers, it can use <a href="http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm#download" rel="nofollow">"jsgraphics" from Walter Zorn</a> (if installed), else it'll degrade and your visitors won't notice a thing.</p> </blockquote> <h2>Sample code from that website:</h2> <blockquote> <p>Please note that everything below this line is his code and wording, not mine. Full attribution belongs to the link above.</p> </blockquote> <p><strong>Setting Up</strong></p> <p>Download mapper.js and include it into your webpage.</p> <pre><code>&lt;script type="text/javascript" src="wz_jsgraphics.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="mapper.js"&gt;&lt;/script&gt; </code></pre> <p>"wz_jsgraphics.js" is copyright by Walter Zorn and not part of the distribution!</p> <p><strong>Using It</strong></p> <p>To get the highlighting just add a class="mapper" to an div surrounded image.</p> <pre><code>&lt;div&gt; &lt;img src="..." class="mapper" usemap="..." alt="..."&gt; &lt;/div&gt; </code></pre> <p>To get individual area highlightings add one or more classes to the area.</p> <pre><code>&lt;map&gt; ... &lt;area shape="poly" class="noborder icolor00ff00" href="#" coords="..."&gt; ... &lt;/map&gt; </code></pre> <p>To get multiple area selections add one or more id's to the areas rel attribute.</p> <pre><code>&lt;map&gt; ... &lt;area shape="poly" id="blue" rel="green,red" href="#" coords="..."&gt; &lt;area shape="poly" id="green" rel="red,blue" href="#" coords="..."&gt; &lt;area shape="poly" id="red" rel="green,blue" href="#" coords="..."&gt; ... &lt;/map&gt; </code></pre> <p>To force a group of areas using the attributes of the initial area.</p> <pre><code>&lt;map&gt; ... &lt;area shape="rect" id="black" class="icolor000000 forcegroup" rel="green,red,blue" href="#" coords="..."&gt; ... &lt;/map&gt; </code></pre>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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