Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>Howard - Rollover Lab</title>
- <script language="JavaScript">
- <!--
- function MM_findObj(n, d) { //v4.01
- var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
- d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
- if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
- for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
- if(!x && d.getElementById) x=d.getElementById(n); return x;
- }
- function MM_swapImgRestore() { //v3.0
- var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
- }
- function MM_preloadImages() { //v3.0
- var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
- var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
- if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
- }
- function MM_swapImage() { //v3.0
- var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
- if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
- }
- //-->
- </script>
- <link rel="stylesheet" href="style.css" />
- </head>
- <body onload="MM_preloadImages('img/button_1_s2.jpg','img/button_2_s2.jpg','img/button_3_r2_c2_s2.jpg')">
- <div id="wrapper">
- <header>
- <h1>Fireworks Rollover Images</h1>
- <nav align="center">
- <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('home','','img/button_1_s2.jpg',1)"><img src="img/button_1.jpg" alt="Home Button" width="200" height="100" id="home" /></a>
- <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('abtm','','img/button_2_s2.jpg',1)"><img src="img/button_2.jpg" alt="About Me Button" width="200" height="100" id="abtm" /></a>
- <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('othe','','img/button_3_r2_c2_s2.jpg',1)"><img src="img/button_3_r2_c2.jpg" alt="Other Button" width="200" height="100" id="othe" /></a><br />
- <p class="spoiler">None of these links do anything...</p>
- </nav>
- </header>
- <main>
- <h2>I Made The Rollover Images</h2>
- <p>Rollover images add interactivity to a web page. Using rollver images in the naviation is common. The user will have the experience of clicking a button that links to an internal URL.</p>
- <p>Adobe Fireworks is a program that designers can use to make the rollover images. We start by creating the button's various states--up and down are required. Then we export the button's html and images--Fireworks creates the HTML file needed for the webpage to display our button as a rollover image. The button's HTML file can be previewed on its own. Finally, Dreamweaver allows us to easily insert the code into the HTML file, wherever we want it. I inserted it into the NAV.</p>
- <p>The navigation for this page was made using rollover images I created in Fireworks and imported to Dreamweaver. Read on to learn about my CSS.</p>
- <h2>I Made the CSS, Too! Here's How</h2>
- <ol>
- <li>Use the CSS Styles Panel - Click the NEW CSS RULE button.</li>
- <ul>
- <li>In RULE DEFINITION at the bottom of thsi window, choose <strong>New Style Sheet File</strong></li>
- </ul>
- <li>There are a few steps to add all of the CSS to BODY, WRAPPER, HEADER, NAV, H1, H2, P and Footer
- <ul>
- <li>From the dropdown choose <strong>TAG to edit
- Body, H1, A or P</strong> </li>
- </ul>
- </li>
- <ul>
- <ul>
- <li>These are older tags and are available in the tag section list.</li>
- </ul>
- <li><strong>Choose ID to edit Wrapper</strong>--must be chosen from dropdown.</li>
- <li><mark>To edit HTML5 elements such as MAIN, HEADER, and FOOTER:</mark></li>
- <ul>
- <li>Go to the Related File for your CSS.</li>
- <li>Code <em><strong>blank rules</strong></em> into the .CSS file, and Save.</li>
- <li>For example: footer{ } or header { } </li>
- </ul>
- </ul>
- <li>At any time, come back to CSS panel and choose a selector in the <strong>ALL</strong> tab of the panel.</li>
- <ul>
- <li>By double clicking any selector (body, nav, wrapper) you can use the CSS window to choose CSS.</li>
- <li>But remember you know how to go into the CSS file to make changes, too! </li>
- </ul>
- </ol>
- </main>
- <footer> <a href="http://lyman.scps.k12.fl.us" target="_blank">Home</a> | <a href="http://lyman.scps.k12.fl.us" target="_blank">Tutorials</a> | <a href="http://lyman.scps.k12.fl.us" target="_blank">About</a><br />
- <span id="ul">Style Guide</span>
- <p>Fonts: Comic Sans MS and Arial Narrow. Monochromatic grayscale; gray = #333 black = #000 white = #FFF</p>
- © Jacob Howard 2017 <a href="mailto:@student.myscps.us">@student.myscps.us</a> </footer>
- </body>
- </html>
Advertisement