{"id":364,"date":"2012-11-15T16:03:00","date_gmt":"2012-11-15T16:03:00","guid":{"rendered":"https:\/\/digitalmediacomputing.org.uk\/?p=364"},"modified":"2012-11-19T16:41:32","modified_gmt":"2012-11-19T16:41:32","slug":"image-maps","status":"publish","type":"post","link":"https:\/\/digitalmediacomputing.org.uk\/?p=364","title":{"rendered":"Image mapping"},"content":{"rendered":"<p>Image maps are pictures that have places on them where you can click your mouse and you will go to a specific web page. \u00a0They are sometimes used for navigation bars on websites.<\/p>\n<p>The clickable areas of an image map are either circles, rectangles or polygons. \u00a0The coordinates of the shapes are described in the HTML code.<\/p>\n<p><a href=\"https:\/\/digitalmediacomputing.org.uk\/wp-content\/uploads\/2012\/11\/2010ImageMapCoords.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-371\" title=\"Image Map Co-ordinates\" src=\"https:\/\/digitalmediacomputing.org.uk\/wp-content\/uploads\/2012\/11\/2010ImageMapCoords-300x145.png\" alt=\"Image Map Co-ordinates\" width=\"300\" height=\"145\" srcset=\"https:\/\/digitalmediacomputing.org.uk\/wp-content\/uploads\/2012\/11\/2010ImageMapCoords-300x145.png 300w, https:\/\/digitalmediacomputing.org.uk\/wp-content\/uploads\/2012\/11\/2010ImageMapCoords.png 588w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The code you need looks like this:<\/p>\n<p style=\"padding-left: 30px;\">&lt;img src=&#8221;planets.gif&#8221; width=&#8221;145&#8243; height=&#8221;126&#8243; alt=&#8221;Planets&#8221; usemap=&#8221;#planetmap&#8221;&gt;<\/p>\n<p>&lt;map name=&#8221;planetmap&#8221;&gt;<\/p>\n<p style=\"padding-left: 30px;\">&lt;area shape=&#8221;rect&#8221; coords=&#8221;0,0,82,126&#8243; href=&#8221;sun.htm&#8221; alt=&#8221;Sun&#8221;&gt;<\/p>\n<p style=\"padding-left: 30px;\">&lt;area shape=&#8221;circle&#8221; coords=&#8221;90,58,3&#8243; href=&#8221;mercur.htm&#8221; alt=&#8221;Mercury&#8221;&gt;<\/p>\n<p style=\"padding-left: 30px;\">&lt;area shape=&#8221;circle&#8221; coords=&#8221;124,58,8&#8243; href=&#8221;venus.htm&#8221; alt=&#8221;Venus&#8221;&gt;<\/p>\n<p style=\"padding-left: 30px;\">&lt;\/map&gt;<\/p>\n<p>Image maps are another trick that is far easier to do in web development software or some image editing software packages. \u00a0It is possible to do in HTML though and\u00a0<a title=\"Mobile Fish\" href=\"http:\/\/www.mobilefish.com\/\" target=\"_blank\">Mobile Fish<\/a> have a nice <a title=\"Image Map Creator\" href=\"http:\/\/www.mobilefish.com\/services\/image_map\/image_map.php\" target=\"_blank\">online image map generator tool<\/a> that is easy to use.<\/p>\n<p>The map is available as a\u00a0<a href=\"https:\/\/digitalmediacomputing.org.uk\/wp-content\/uploads\/2012\/11\/Peppa-Pig-Map.html\">Peppa Pig Map<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.preciouslittleone.com\/images\/products\/prod_000000_PeppaPigArtwork.jpg\" alt=\"click map\" width=\"600\" height=\"480\" border=\"0\" usemap=\"#peppamap\"\/><\/p>\n<map name=\"peppamap\">\n<!-- Region 1 Blue and white tent --><\/p>\n<area title=\"Nick Jr\" shape=\"rect\" coords=\"9,212,192,379\" href=\"http:\/\/www.nickjr.co.uk\/shows\/peppa-pig\/\" alt=\"Nick Jr\" target=\"_blank\" \/>\n<p><!-- Region 3 Peppa and George --><\n\n\n<area title=\"Peppa Pig's website\" shape=\"circle\" coords=\"303,369,104.5\" href=\"http:\/\/www.peppapig.com\/\" alt=\"Peppa Pig's website\" target=\"_blank\" \/>\n<p><!-- Region 2 Hook the duck stall --><\/p>\n<area title=\"Channel 5\" shape=\"rect\" coords=\"460,193,580,371\" href=\"http:\/\/www.channel5.com\/shows\/peppa-pig\/\" alt=\"Channel 5\" target=\"_blank\" \/>\n<p><!-- Region 4 Ferris Wheel --><\/p>\n<area title=\"Peppa Pig World\" shape=\"circle\" coords=\"310,72,76\" href=\"http:\/\/peppapigworld.co.uk\/\" alt=\"Peppa Pig World\" target=\"_blank\" \/>\n<p><!-- Region 5 Helter Skelter --><\/p>\n<area title=\"Peppa Pig Store\" shape=\"rect\" coords=\"144,61,222,214\" href=\"http:\/\/www.peppastore.com\/\" alt=\"Peppa Pig Store\" target=\"_blank\" \/>\n<area shape=\"default\" href=\"http:\/\/en.wikipedia.org\/wiki\/Peppa_Pig\" alt=\"\" \/>\n<\/map>\n","protected":false},"excerpt":{"rendered":"<p>Image maps are pictures that have places on them where you can click your mouse and you will go to a specific web page. \u00a0They are sometimes used for navigation bars on websites. The clickable areas of an image map are either circles, rectangles or polygons. \u00a0The coordinates of the shapes are described in the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,43,46,44],"tags":[],"class_list":["post-364","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html","category-ms-farrells-blog","category-s5-6dmc","category-web-design"],"_links":{"self":[{"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=364"}],"version-history":[{"count":10,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":398,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions\/398"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/media\/371"}],"wp:attachment":[{"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}