{"id":1187,"date":"2012-08-22T08:54:17","date_gmt":"2012-08-22T12:54:17","guid":{"rendered":"http:\/\/www.equipmentlink.org\/blog\/?p=1187"},"modified":"2012-08-22T08:54:17","modified_gmt":"2012-08-22T12:54:17","slug":"web-tip-27-server-side-image-maps-82212","status":"publish","type":"post","link":"http:\/\/www.equipmentlink.org\/blog\/?p=1187","title":{"rendered":"Web Tip #27 &#8211; Server side Image Maps, 8\/22\/12"},"content":{"rendered":"<h2>Server-side Image Maps<\/h2>\n<p>Server-side image maps (typically an <code>&lt;img&gt;<\/code> with the <code>ismap<\/code> attribute) allows x and y coordinates of where a user clicks the image with a mouse to be sent to a server for processing. For example, for a state map, the x and y coordinates of where the user clicks could be analyzed to direct the user to a web page for the county they clicked. Server-side image maps are not keyboard accessible &#8211; one cannot click a particular point on an image using the keyboard. Instead of server-side image maps, client-side image maps (wherein clickable areas or &#8216;hotspots&#8217; are defined) should be used. Client side images maps (<code>&lt;area&gt;<\/code> elements with appropriate alternative text and a logical navigation order) are fully accessible to both mouse and keyboard users.<\/p>\n<div class=\"al2fb_like_button\"><div id=\"fb-root\"><\/div><script type=\"text\/javascript\">\n(function(d, s, id) {\n  var js, fjs = d.getElementsByTagName(s)[0];\n  if (d.getElementById(id)) return;\n  js = d.createElement(s); js.id = id;\n  js.src = \"\/\/connect.facebook.net\/en_US\/all.js#xfbml=1&appId=149587675112835\";\n  fjs.parentNode.insertBefore(js, fjs);\n}(document, \"script\", \"facebook-jssdk\"));\n<\/script>\n<fb:like href=\"http:\/\/www.equipmentlink.org\/blog\/?p=1187\" layout=\"standard\" show_faces=\"true\" share=\"false\" width=\"450\" action=\"like\" font=\"arial\" colorscheme=\"light\" ref=\"AL2FB\"><\/fb:like><\/div>","protected":false},"excerpt":{"rendered":"<p>Server-side Image Maps Server-side image maps (typically an &lt;img&gt; with the ismap attribute) allows x and y coordinates of where a user clicks the image with a mouse to be sent to a server for processing. For example, for a state map, the x and y coordinates of where the user clicks could be analyzed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1187"}],"collection":[{"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1187"}],"version-history":[{"count":3,"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions"}],"predecessor-version":[{"id":1190,"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions\/1190"}],"wp:attachment":[{"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.equipmentlink.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}