{"id":31998,"date":"2017-08-08T03:01:51","date_gmt":"2017-08-07T17:01:51","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=31998"},"modified":"2017-08-08T06:27:00","modified_gmt":"2017-08-07T20:27:00","slug":"walkways-quiz-game-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/walkways-quiz-game-primer-tutorial\/","title":{"rendered":"Walkways Quiz Game Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/walkways.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Walkways Quiz Game Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/walkway.jpg\" title=\"Walkways Quiz Game Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Walkways Quiz Game Primer Tutorial<\/p><\/div>\n<p>Have you ever thought of a background image for a webpage, as a thing you could &#8220;regionally&#8221; click, as happens with the HTML map element?  What about if we filled the webpage background with an HTML map element and its associated HTML img element?  Then what about if we &#8220;overlayed&#8221; onto that the main webpage functionality intended.  That&#8217;s what we do today for our &#8220;Walkways Quiz&#8221; game web application.<\/p>\n<p>Let&#8217;s summarize the features of our &#8220;Walkways Quiz&#8221; game below &#8230;<\/p>\n<ul>\n<li>the webpage background consists of an HTML map element and its associated HTML img element (again created, as per our oft used approach, using the great <a target=_blank title='mobilefish' href='http:\/\/www.mobilefish.com\/services\/image_map\/image_map.php'>mobilefish<\/a> image map creator) that is defined as 100% width, and has &#8220;regional&#8221; click functionality<\/li>\n<li>HTML div elements &#8220;overlay&#8221; this background, relying for &#8220;overlay&#8221; on our &#8220;usual suspects&#8221; for overlaying, namely &#8230;\n<ol>\n<li><a target=_blank title='CSS position:absolute information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/pr_class_position.asp'>position:absolute<\/a> property (all elements today have this inherited property)<\/li>\n<li><a target=_blank title='CSS z-index information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/pr_pos_z-index.asp'>z-index<\/a><\/li>\n<li><a target=_blank title='CSS opacity property information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/css3_pr_opacity.asp'>opacity<\/a><\/li>\n<\/ol>\n<p> &#8230; and a &#8220;work in progress&#8221; is to (try to) position the overlaying (via % type positioning, in this first draft) so as to hide background image &#8220;game giveaway&#8221; information\n<\/li>\n<li>the &#8220;overlaying&#8221; functionality is a &#8220;Walkways Quiz&#8221; presenting an HTML select &#8220;dropdown&#8221; of Walkway names, randomly selected, asking the user to choose from another HTML select &#8220;dropdown&#8221; element the Country of origin of that Walkway<\/li>\n<li>to keep the &#8220;overlaying&#8221; &#8220;Walkways Quiz&#8221; functionality &#8220;above the fold&#8221; we, at the document\/body <i>onload<\/i> event arrange to hashtag navigate to it via the Javascript DOM &#8230;<br \/>\n<code><br \/>\nlocation.href='#dmiddle';<br \/>\n<\/code>\n<\/li>\n<li><a target=_blank title='CSS3 border-radious information from w3schools' href='http:\/\/www.w3schools.com\/cssref\/css3_pr_border-radius.asp'><i>border-radius<\/i><\/a> is used with the &#8220;overlaying&#8221; HTML div elements to create rounded corners<\/li>\n<li><a target=_blank title='YouTube' href='http:\/\/youtube.com'>YouTube<\/a> <a target=_blank title='YouTube API for Iframe embedded videos' href='https:\/\/developers.google.com\/youtube\/iframe_api_reference'>API for Iframe embedded videos<\/a> functionality<\/li>\n<\/ul>\n<p>Before we go any further, we need to thank &#8230;<\/p>\n<ul>\n<li>Michael Gebricki&#8217;s &#8220;Scary Walkways and Footbridges&#8221; article in the Sun Herald (Sydney) 6\/8\/2017 edition<\/li>\n<li><a target=_blank title='Michael Gebicki' href='http:\/\/www.traveller.com.au\/the-worlds-most-spectacular-footbridges-gkii38'>Michael Gebicki<\/a>&#8216;s traveller.com.au online article<\/li>\n<li>Image map creation help via the <a target=_blank title='mobilefish' href='http:\/\/www.mobilefish.com\/services\/image_map\/image_map.php'>mobilefish<\/a> webpage<\/li>\n<\/ul>\n<p>Maybe walkways interest you?  If so, or if you want to see how the functionality talked about above, &#8220;fits together&#8221;, or if you want to see the rounded borders, or how embedded YouTube videos can work, or how an HTML map element, with its associated image, can act as a more hands on and interesting webpage background image, try today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/walkways.html\" title='Click picture'>live run<\/a> and\/or peruse its HTML and Javascript and CSS <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/walkways.html_GETME\" title='walkways.html'>walkways.html<\/a> source code.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d31998' onclick='var dv=document.getElementById(\"d31998\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/quiz\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d31998' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever thought of a background image for a webpage, as a thing you could &#8220;regionally&#8221; click, as happens with the HTML map element? What about if we filled the webpage background with an HTML map element and its &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/walkways-quiz-game-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,15,37],"tags":[126,127,1798,281,476,477,576,590,652,745,800,876,894,997,1022,1319,2297,1493,2017,1496],"class_list":["post-31998","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-tutorials","tag-background","tag-background-image","tag-border-radius","tag-css","tag-game","tag-games-2","tag-html","tag-image","tag-javascript","tag-map","tag-mobilefish","tag-opacity","tag-overlay","tag-programming","tag-quiz","tag-tutorial","tag-walkways","tag-youtube","tag-youtube-api","tag-z-index"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/31998"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=31998"}],"version-history":[{"count":10,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/31998\/revisions"}],"predecessor-version":[{"id":32021,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/31998\/revisions\/32021"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=31998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=31998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=31998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}