width
and height
attributes to your image map images. You can override these in CSS to make them responsive.</body>
<script>
block or a separate file, call:$('img[usemap]').rwdImageMaps();
You may also want to wrap it inside a $(document).ready()
function, like so:
$(document).ready(function(e) {
$('img[usemap]').rwdImageMaps();
});
http://mattstow.com/experiment/responsive-image-maps/rwd-image-maps.html
Copyright (c) 2016 Matt Stow
Licensed under the MIT license (see LICENSE for details)
Minified version created with Online YUI Compressor: http://www.refresh-sf.com/yui/