{"id":14772,"date":"2015-05-13T05:01:07","date_gmt":"2015-05-12T19:01:07","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=14772"},"modified":"2015-05-12T15:06:02","modified_gmt":"2015-05-12T05:06:02","slug":"htmljavascript-popup-mouseover-event-game-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-popup-mouseover-event-game-tutorial\/","title":{"rendered":"HTML\/Javascript PopUp Mouseover Event Game Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/popuptest.html\"><img decoding=\"async\" style=\"float:left;border: 15px solid pink;\" alt=\"HTML\/Javascript PopUp Mouseover Event Game Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/popuptest.jpg\" title=\"HTML\/Javascript PopUp Mouseover Event Game Tutorial\"  \/><\/a><p class=\"wp-caption-text\">HTML\/Javascript PopUp Mouseover Event Game Tutorial<\/p><\/div>\n<p>Are you &#8230;<\/p>\n<ul>\n<li>a fan of <a target=_blank title='Tom Cruise avoiding laser beams' href='http:\/\/www.youtube.com\/watch?v=ar0xLps7WSY'>Mission Impossible<\/a><\/li>\n<li>amazed when Rafael Nadal avoids walking on the lines<\/li>\n<li>when accidentally dropping your toast, hoping it lands butter up<\/li>\n<\/ul>\n<p>&#8230;?  If you scored 2 or above &#8230; please read on.  If you scored zero &#8230; well, I&#8217;m speechless!<\/p>\n<p>Today we&#8217;ve written a mouse movement and popup window game for your perusal after the great advice we stumbled upon with this webpage about the <a target=_blank title='Window object createPopup method' href='http:\/\/help.dottoro.com\/ljsxcrhv.php'>createPopup<\/a> Window (object) method &#8230; thanks.<\/p>\n<p>The idea of this game (for laptops) is to &#8230;<\/p>\n<ul>\n<li>not step on any tiles of the obstacle course presented to you once you click the button<\/li>\n<li>keep your mouse moving in an interesting way<\/li>\n<li>move the mouse fast enough to avoid the program claim of passivity &#8230; like in <a target=_blank title='Judo passivity' href='http:\/\/judoadvisor.com\/2011\/07\/pressure-passivity-shido-yuko-and-how-they-work-in-judo-competition\/'>Judo<\/a><\/li>\n<\/ul>\n<p>The workings of the game in HTML and Javascript rely on &#8230;<\/p>\n<ul>\n<li><a target=_blank title='Window object createPopup method' href='http:\/\/help.dottoro.com\/ljsxcrhv.php'>createPopup<\/a> Window object method<\/li>\n<li>the <a target=_blank href='http:\/\/www.w3schools.com\/jsref\/event_onmouseover.asp' title='Mouseover event information from w3schools'>(on)mouseover<\/a> mouse event<\/li>\n<li>Javascript <a target=_blank href='http:\/\/www.w3schools.com\/jsref\/met_win_setinterval.asp' title='Javascript setInterval information from w3schools'>setInterval<\/a> timer<\/li>\n<li>clearing and rewriting document.body.<a target=_blank href='http:\/\/www.w3schools.com\/jsref\/prop_html_innerhtml.asp' title='Javascript DOM innerHTML information from w3schools'>innerHTML<\/a> (rather than reloading webpage with a URL of any sort)<\/li>\n<\/ul>\n<p>So try the <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/popuptest.html\" title=\"Click picture\">live run<\/a> and\/or examine, download, or use the HTML and Javascript (DOM) source code you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/popuptest.html_GETME\" title=\"popuptest.html\">popuptest.html<\/a><\/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='#d14772' onclick='var dv=document.getElementById(\"d14772\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/?tag=DOM\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d14772' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Are you &#8230; a fan of Mission Impossible amazed when Rafael Nadal avoids walking on the lines when accidentally dropping your toast, hoping it lands butter up &#8230;? If you scored 2 or above &#8230; please read on. If you &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/htmljavascript-popup-mouseover-event-game-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":[1541,354,476,477,576,652,1539,967,1540,997,1319],"class_list":["post-14772","post","type-post","status-publish","format-standard","hentry","category-elearning","category-games","category-tutorials","tag-createpopup","tag-dom","tag-game","tag-games-2","tag-html","tag-javascript","tag-mouseover","tag-popup","tag-popups","tag-programming","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/14772"}],"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=14772"}],"version-history":[{"count":8,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/14772\/revisions"}],"predecessor-version":[{"id":14780,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/14772\/revisions\/14780"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=14772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=14772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=14772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}