Last active
December 26, 2015 17:08
-
-
Save markis/7184443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div>Hover over swatch</div> | |
<img src="http://markistaylor.files.wordpress.com/2012/05/swatches.jpg" | |
alt="Swatches" usemap="#swatchmap" /> | |
<map name="swatchmap"> | |
<area shape="rect" coords="0,0,20,20" alt="Graphite" /> | |
<area shape="rect" coords="24,0,44,20" alt="Snow" /> | |
<area shape="rect" coords="50,0,70,20" alt="Poppy" /> | |
<area shape="rect" coords="77,0,97,20" alt="Caynene" /> | |
<area shape="rect" coords="103,0,123,20" alt="Tan" /> | |
</map> | |
<div>Hovered swatch: <span id="hoveredSwatch"></span></div> | |
<div>Selected swatch: <span id="selectedSwatch"></span></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment