{"id":351,"date":"2012-11-15T15:21:10","date_gmt":"2012-11-15T15:21:10","guid":{"rendered":"https:\/\/digitalmediacomputing.org.uk\/?p=351"},"modified":"2012-11-15T15:24:30","modified_gmt":"2012-11-15T15:24:30","slug":"roll-over-roll-over","status":"publish","type":"post","link":"https:\/\/digitalmediacomputing.org.uk\/?p=351","title":{"rendered":"Roll over, roll over"},"content":{"rendered":"<p>The website needs to\u00a0include\u00a0three of the following:<\/p>\n<ul>\n<li>A simple form (like a \u2018mailto:\u2019 form)<\/li>\n<li>An image map<\/li>\n<li>Rollover images<\/li>\n<li>A pop up or drop down menu<\/li>\n<li>Photographs<\/li>\n<\/ul>\n<p><strong><\/strong><a href=\"https:\/\/digitalmediacomputing.org.uk\/wp-content\/uploads\/2012\/11\/Button.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-352\" title=\"Button\" src=\"https:\/\/digitalmediacomputing.org.uk\/wp-content\/uploads\/2012\/11\/Button.png\" alt=\"\" width=\"205\" height=\"57\" \/><\/a>Today we looked briefly at <strong>rollover images<\/strong>. \u00a0This is something that is easier using web development software but is still very possible when making the pages yourself using HTML.<\/p>\n<p>First you can use a CSS button generator like <a title=\"CSS Tricks ButtonMaker\" href=\"http:\/\/css-tricks.com\/examples\/ButtonMaker\/#\" target=\"_blank\">ButtonMaker<\/a>. \u00a0Tweek the settings to make the button look like you want it then copy the CSS code.<\/p>\n<p>Open up your HTML file (in Notepad or in Mozilla Thimble). \u00a0Paste the copied code into the &lt;head&gt; section of your page. \u00a0This will need to be in &lt;style&gt; tags (&lt;style&gt; before the code, &lt;\/style&gt; after the copied code)<\/p>\n<p>Next we need to add in code to display your button. \u00a0This needs to go into the &lt;body&gt; section of the page.<\/p>\n<p>We have to find code to display the button. \u00a0You can get this by viewing the page source on the <a title=\"ButtonMaker\" href=\"http:\/\/css-tricks.com\/examples\/ButtonMaker\/#\" target=\"_blank\">ButtonMaker<\/a> site and looking for the part that has &#8220;View the CSS&#8221; in it.<\/p>\n<p>&#8230;.if you get stuck, the code you need is:<\/p>\n<p style=\"padding-left: 30px;\">&lt;div id=&#8221;button-box&#8221;&gt;<br \/>\n&lt;a href=&#8221;<a href=\"http:\/\/css-tricks.com\/examples\/ButtonMaker\/#\" target=\"_blank\">#<\/a>&#8221; class=&#8221;button&#8221;&gt;View the CSS&lt;\/a&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<p>Add this code into your page and change the text from\u00a0&#8220;View the CSS&#8221; to something more appropriate for your website.<\/p>\n<p>Finally in the &lt;a href..&gt; tag you need to change the &#8216;#&#8217; to be the web address you want to link to.<\/p>\n<p>Have a look at <a title=\"Ms Farrell's Awesome CSS Rollover Button Example\" href=\"https:\/\/thimble.webmaker.org\/p\/fcci\" target=\"_blank\">my example<\/a>\u00a0to see a working button. \u00a0It actually links to a lovely site called <a title=\"Don't Click It\" href=\"http:\/\/www.dontclick.it\/\" target=\"_blank\">Don&#8217;t Click It<\/a> which tries out different ways of using websites without clicking your mouse &#8211; worth having a look and a play!<\/p>\n<p><strong>Alternative:<\/strong><\/p>\n<p>A different way to do this is to use code in the main body of the page. \u00a0This is particularly useful when you can&#8217;t change the CSS such as with a blog. \u00a0The code you need is:<\/p>\n<p style=\"padding-left: 30px;\">&lt;a href=&#8221;TARGET URL GOES HERE&#8221;&gt;<br \/>\n&lt;img src=&#8221;URL OF FIRST IMAGE GOES HERE&#8221; onmouseover=&#8221;this.src=&#8217;URL OF SECOND IMAGE GOES HERE'&#8221; onmouseout=&#8221;this.src=&#8217;URL OF FIRST IMAGE GOES HERE'&#8221; \/&gt;<br \/>\n&lt;\/a&gt;<\/p>\n<p><a href=\"http:\/\/www.theteachersguide.com\/Songs\/ten_in_a_bedthere_were_ten_in_a_.htm\"><img decoding=\"async\" onmouseover=\"this.src='http:\/\/www.lamaestrachiara.com\/inglese\/song\/10-bed\/02.gif'\" onmouseout=\"this.src='http:\/\/www.lamaestrachiara.com\/inglese\/song\/10-bed\/01.gif'\" src=\"http:\/\/www.lamaestrachiara.com\/inglese\/song\/10-bed\/01.gif\" alt=\"\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The website needs to\u00a0include\u00a0three of the following: A simple form (like a \u2018mailto:\u2019 form) An image map Rollover images A pop up or drop down menu Photographs Today we looked briefly at rollover images. \u00a0This is something that is easier using web development software but is still very possible when making the pages yourself using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,49,43,46,44],"tags":[74,77,76,75],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-css","category-html","category-ms-farrells-blog","category-s5-6dmc","category-web-design","tag-buttons","tag-design","tag-interface","tag-rollover"],"_links":{"self":[{"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/351","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=351"}],"version-history":[{"count":10,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/351\/revisions\/360"}],"wp:attachment":[{"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalmediacomputing.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}