Introduction | Readings | Instruction | Assessment | Calendar

  Module Two: Links, Links, Links
Instruction & Guided Practice
Basic Linkology | Anchors | Images as Links | Buttons & Nav Bars

Tip:
As you go deeper into the tools of DW, you may feel the need for more help. If for no other reason, you may want to have another explanation of the topic in different words. Dw anticipated this when it provided its Help tools and tutorials.

When you want Dreamweaver's help, go to the Menu bar and click on Help. The drop-down menu offers you several options:

  • Dreamweaver Help - This is a link to Dreamweaver's web site. There you will find many articles and tutorials to assist you.
  • Reference - This activates the O'Reilly HTML Reference window. Look for it below your Properties inspector, at the bottom of the screen. Enter an HTML tag (or find one in the menu) and learn more about its operation. You can also access Reference through Shift+F1.
  • Dreamweaver Support Center - This is an online service of Dw. Check here periodically for software updates and user tips. Actually, it's the same site as Dreamweaver Help.

These are just a few of Dreamweaver's Help sources, but they are the ones that will be most helpful to you.

II-1 Learning the Links

Text Links can be made in several easy and convenient ways. The first is done through the Menu Bar. Begin by placing the cursor where you want the link to appear in your document. Click on Insert in the Menu bar, find Hyperlink, and click on it. This dialog window opens (it won't have text in the input fields; I've added it as an example):

The Text window shows the text that will appear on the web page, underlined in blue (unless I tell it to do otherwise -- more on that later). Link is the URL I copied from my web browser and pasted into this window. I can also type it in, but Copy & Paste is safer (less likely to make a mistake) and faster. The Target window is used primarily with frames, so usually you won't need to put anything there. The current window (above) shows _blank. This means that when my reader clicks on the link to University of London, a new window will open in his browser. Other choices are _self, meaning open in the active window (the default action), _parent and _top -- both used with frames. The last three dialog boxes,Title, Access key, and Tab index, we will leave alone.

The second way to insert a link is through the Common tab of the Insert bar. Place the cursor where you want the link to appear and click on the Link icon -- Insert link icon. The Hyperlink dialog box will open as it did above, providing the same options.

Point to File icon Point to File (circled in red below) is designed to link to files within your Dw folder. It is located in the HTML Text Properties inspector . The steps for using this method are:

Point to file tool

  1. Highlight/select the text or image that will serve as the link.
  2. Find the target file in your Dreamweaver Files panel.
  3. Click on the Point to File icon.
  4. Drag it to the file you wish to link to.

NOTE: The image above illustrates the Properties inspector for CS3. It is very similar to CS4.

The fourth and probably easiest method is to start with the link text already in place. For example, I had already typed in "Common tab of the Insert bar" in the second paragraph before I made it into a link. I then highlighted the text. I entered the URL for the link in the Text window of the Properties Inspector and hit Enter. This method can also be achieved by right-clicking (Control+Click for Mac) on the highlighted text, however this works best for links within the site. This method opens your file window and allows you to navigate to the document to which you are linking.

Windows/Mac Note:

Mac logoSince we've already completed a module, you should be accustomed to the Enter/Return variation in Windows and Mac. From here on, Enter will mean Enter/Return.

Notice that there is a Target option in the Link dialog, but we don't want a new window, so we won't touch that box.

Tip:
Using the Target designation of _blank can be very handy, but be kind to your reader and let her know that a new window is going to open with the link. Add a note that says something like, "To return to this page, close the new window." If the new window opens a page you created, you could also include a clickable button on the new page that says "Close this window." You'll learn how to do that later in this module. To let you see how the _blank target works, click on this link -- and get a reward!

It's also possible to link to a non-HTML document, such as a photo, sound file, PDF, or Word document. Do it the same way as you did the first three, but you have to use the correct file extension when you write the link, like glossary.doc for a Word document. Like an HTML document, however, the Word document (or whatever) must be saved in your Dw folder and it must be uploaded to your remote server in order for your readers to access it.

One more useful link is the e-mail link. Its structure differs from a regular link; it looks like this: <a href="mailto:erbej@uwstout.edu">James Erbe</a>. My name will appear as the underlined link, and when the reader clicks on it, a new mail document will be created in his e-mail program, pre-addressed to me. E-mail is an easy and convenient way for parents to communicate with you. Be sure to have your e-mail address prominently displayed on every page of your web site.

Tip:
Some designers feel that it's better to have your name serve as a link to your e-mail address rather than having the actual address on the page. This -- James Erbe -- vs. this -- erbej@uwstout.edu. Why? Because spammers search through web sites for e-mail addresses -- pretty easy to find when they all contain @.

Like the other links, the e-mail link can be created through the Menu --> Insert --> Email Link. A dialog box opens asking you for the text that will appear as the link -- usually the e-mail address itself -- and the e-mail address. Do not enter "mailto:" as part of the address; Dw will do that for you. Or you can place the cursor where you want the e-mail link to go and click on the e-mail icon in the Common tab of the Insert Bar. The same dialog box opens. The last is again the easiest method. Type the text you want to use as the e-mail link, such as the person's name and/or e-mail address, then highlight it and click on the e-mail icon in the Insert Bar. The highlighted text will appear in the Text window. You just have to supply the address, although once you've entered an address, Dw remembers it and will offer to use it for the link.

Guided Practice - Text Links
Activity II-1

Our first activity will be to add some links to existing text. It would be helpful if you printed out these directions so you can stay with the Dw screen rather than switch back and forth.

  1. Find the document you created in Module One called "My Home Page (Dreamweaver Site 1/index.html)" in the Files (Local view) panel. Right-click or Control-click the file name. From the pop-up menu, choose Edit --> Duplicate. A copy of index.html now appears. Note: if the copy, which will be clearly labeled, doesn't appear, click on the Refresh icon. Now click on the name of the copy once, pause, and click again, highlighting the name. Rename this document phase_1.html. We'll now leave phase_1.html in the site folder as a record of Activity I-1.

    Tip:
    Take careful note of the way we've renamed this file. Notice that it isn't phase 1.html. Why? Because file names must not have spaces in them or they won't work. On occasion you'll see a file name like this: phase%202.html. The %20 is the computer's way of filling that illegal space so that the file name and the links to it work. If you want a visual break in the file name, use the underline _ or the dash - .

    This rule applies to all types of files used on the Web, not just HTML.

    The same rule of no spaces applies to folders. "module_one" is fine, but "module one" is not.

  2. Double-click on index.html so that is the active document in the Design View. Highlight the words in the heading, "Intermediate Web Design". Now place your cursor in the Link window in the Properties inspector. Either type in or Copy & Paste the URL of our class web site: http://www.uwstout.edu/soe/profdev/advwebdesign . Hit Enter.
  3. Now highlight Louise's e-mail address; then click on the e-mail icon in the Insert Bar (just under the Menu bar). Both dialog boxes should now contain her e-mail address, and the e-mail link is ready. Dw will remember the e-mail address if you wish to use it again.
  4. Now let's add a link to the Dw site on the Internet. Highlight Dreamweaver and enter this URL in the Link window: http://www.adobe.com/products/dreamweaver/ NOTE: the URL must include http:// for the link to work correctly. Save your work at this time.
  5. We're going to take a break from creating links on your index page for a few minutes. We want to be able to link to the word glossary on the page, so we have to create a glossary page.
    1. Go to the course Glossary Page on the Internet.
    2. If you are viewing the page through Learn@UWStout, you'll need to remove the page from the course frame. Do this by using right-click/Control+click on the Glossary Page link above and select "Open Link in New Window." NOTE: the undocked Glossary is in a new browser window. To return to the Content page, close the new window.
    3. Look in the browser's Menu bar for View --> Source or Page Source (Firefox). Highlight all of the HTML code and Copy it.
      NOTE: If you are unable to View --> Source, it may be that your Temporary Internet File Folder is too full. On Internet Explorer go to the main menu bar: Tools --> Internet Options and then under Temporary Internet Files, select Delete Files... Now try step #2 again.
    4. Return to Dw. Switch to Code view.
    5. Did you switch to Code view? This won't work unless you did.
    6. In the menu bar find File --> New... --> Basic Page --> HTML.
      Click on Create or OK.
    7. In Code view, delete all of the pre-formatted code that Dw has supplied for you, then Paste the HTML into the page. Save the document as glossary.html.
    8. Switch back to Design view. Don't be alarmed when you don't see the images. They will link to the document when it's uploaded to the Internet.
  6. Now return to index.html. Highlight the phrase "my own glossary" in index.html. Now find the Point to File icon -- -- and drag it to your File window, releasing it on glossary.html (or browse to the file by clicking on the folder icon). Next, click on the Target selector and choose _blank. I've put a "Close the window" button on the page, so you won't link to a dead end. Refer to the illustration below:
    Point to file with glossary.html
  7. We'll use Robert Frost for our last link. We can't e-mail him, sadly, so do a search and see if you can find a page with a biography and maybe a photo of him. When I did a search for "Robert Frost" with Google I got 2,380,000 hits, so you shouldn't have much trouble finding a good page. Save your changes.
  8. Compare your work with the model.
Important tipJust a reminder . . .

When you want to center a header or other piece of text, do not do it through the CSS panel. Instead, refer to the Dreamweaver menu: Format --> Align --> Center.

You can also highlight the text, then right-click/Control+click to get a menu that includes Align --> Center.

align text with right-click

Note: This method cannot be used with images; only text.

 

II-2 - Anchors Aweigh!

All of the links we have created so far have been external links, ones that lead out of the current page. Now we'll look at ways to link from one part of the page to another and from one page to a specific part of another page. This is done using anchors. If you just clicked on anchors you activated a link using an anchor. It took you from this page to the definition of anchor on the index page of this module.

I can place an anchor anywhere I want simply by placing the cursor where I want the reader to "arrive" when he clicks on the link. I then click on the anchor icon in the Common tab of the Insert Bar -- Anchor icon -- and the anchor dialog box appears, asking me what I want to name this anchor. The anchor icon now appears on the Design View, but it is not visible to your reader. I can also insert an anchor using Menu --> Insert -- > Named Anchor. There are two vital rules in naming anchors: no spaces are allowed and case must remain the same from link to anchor. The HTML for an anchor looks like this: <A name="anchor_name"></A>. Because the anchor is invisible, there is nothing between the two tags. A link to this same anchor would look like this<A href="#anchor_name">Go to this anchor.</A> Notice the pound sign; this is the designation for a link using an anchor.

Tip:
Notice that the anchor -- A name="anchor_name" -- is in lower case. This means that the link to that anchor -- A href="#anchor_name" -- must also be in lower case. In other words, the anchor and the link names must be identical in every way for the internal link to work. Notice, too, that there are no spaces in an anchor name, just as there should be no spaces in any web file or folder names.

There are two instances where anchors and internal links are a fundamental part of every web page. One is Return to Top or Top of Page. This link helps your reader navigate your pages more efficiently with less scrolling. I've included this kind of link on every page of this site, formatted as a graphic that says, simply, "Top." The other highly effective use of anchors is a page index or table of contents. Perhaps you've created a newsletter with titles at the top that link to articles lower on the page. The internal link is a very user-friendly navigation device.

Linking to a specific point on another page isn't much more difficult than what I've described so far -- and what you will practice shortly. I've already shown you such a link in the first paragraph of this section. Let's say I want to take my reader to the glossary page we linked to in the first activity, but I wanted to go directly to the definition for "link." First, I'll set an anchor on glossary.html immediately in front of the term, link. I'll name the anchor something logical -- like link. Now I'll create the link. The text that I want to act as the link is "a definition of link." The definition is on the page named glossary.html, and the anchor is named link. So the link would look like this: <A href="glossary.html#link">a definition of link</A>. Here's the real active link: a definition of link.

Guided Practice - Anchors & Internal Links
Activity II-2

Let's try doing some anchors and links. Please open glossary.html in Design View.

  1. Notice that I have already entered links on the page to all of the module Introduction pages. I've used absolute links (complete URL's) because I don't know where this glossary page may end up. By using the complete address on the links, it will work anywhere. Now notice that I've started an index on the page:
    A - D | E - H | I - L | M - P | Q - T | U - Z
    This will make it easier to set up our links and anchors since I already have the link text and I've established the parameters for placing the anchors: one will go at absolute link (A), one at folder (since there is no term starting with E -- yet), one at image map (I), one at menu (M), one at relative link (Q), and one at upload (U). Please place those anchors now and name them with the letter they lead to, such as A, E, I, etc.

    Tip:
    As Invisible Elements, anchors -- -- and breaks -- -- don't appear on the browser screen, but they do appear in the Design View and affect its appearance. For example, a nicely aligned column will be distorted when an anchor is inserted into it. But don't worry: when you go to the browser, the spacing reverts to what you had intended and the icon is invisible. That's why saving and previewing in the browser (F12) is important to do periodically. We'll set this up shortly, so don't try it yet.

    By the way, all linked documents must be saved, too, in order to appear correctly in the browser.


    NOTE: Those vertical lines -- | -- that separate the links are called pipes. It's a standard character on your keyboard but you don't have many occasions to use it. Look for it just above the Enter key on the right side of the Windows keyboard (Return on a Mac), on the same key as the back slash -- \. It may look like a broken line on your keyboard, but it's a solid line on the screen.
  2. We'll now create the links themselves. Highlight A - D. Now Click & Drag the Point to File icon -- -- from the Properties Inspector to anchor "A." The link is now made. Continue so that all of the letters are linked to their corresponding anchors. You'll reach a point where the letters and the anchor don't appear in the Design view together. No problem: highlight the letters, then scroll down to the matching anchor; click on Point to File and drag to the anchor.

    Movie is available for viewing.For a visual explanation of these directions, watch this Flash movie for a step-by-step guide on how to place anchors and use the Point to File tool. NOTE: The movie will open in a new window (be sure your pop-up blocker is turned off for this site). It may be necessary to scroll down a bit to see the playback controls of the movie. Close the window to return to this page.

    Tip:
    You'll find several movies in the course material. To save on download time (they're very large files) I've kept them quite short. For this reason, you may wish to replay or stop the movie -- easy to do with the controls that accompany every file.

    movie player controls

    If you wish to review any portion of the movie, click on Pause, then drag the player head back and forth until you see what you'd like to view again. The player head can also be moved when the movie is not playing.

  3. Now let's do something very user-friendly and repeat our set of internal links at the bottom of the page. Sounds tedious, but it's not. When you Copy & Paste from your Design View, it copies everything -- text, formatting, links, and all. So, highlight the alphabetical index links. Copy the links using your preferred method (mine is right-click/Control-click). Now place your cursor at the end of the last definition which ends "or multiple folders." Hit Enter twice. Now Paste the links onto the page in the space above the "Close this window" button. They look bad on the left, so let's center them. Click anywhere in the links and then click on the centering icon in the Properties Inspector.
  4. Save your work. Now preview it in your browser by using the F12 key.

    Windows/Mac Note:

    Mac users, you won't be able Mac logoto use all of the Function (F) keys the way PC users do. To Preview in Browser, for example, it's easiest to click on the little world map icon -- Preview in Browser -- that's located to the right of the Title window in the Workspace. The directions below will help you set that up.


    First, however, we need to configure Dw to use the browser of your choice (Internet Explorer, Safari, Netscape, etc.). Start by going the to Menu --> File --> Preview in Browser --> Edit Browser List... The Preferences window will open with the Preview in Browser category selected. Click on the plus sign -- + -- to select your browser. Type its name where indicated; a nickname is fine. Next, click on the Browse window and navigate to the application file for the browser. See the illustration on the left. When you have selected the application file, click on Primary browser. If you wish to use more than one browser, click on the plus sign again and follow the same steps. This time click on Secondary browser, however. You're now ready to use F12 to preview your page. Compare your work with the model. If it looks right, upload it to your web site.

II-3 - Linking Up with Graphics

We're getting into a "chicken or the egg" quandary now because we need to explore the role that graphics can play in links, but we haven't had any background in graphics -- at least as far as Dw is concerned. That's the subject of our next module. However, we'll brave the wilderness and consider two ways of using graphics (images) as links. Neither way will include how to create the graphic itself. Dw "doesn't do graphics."

Tip:

A number of questions are likely to arise as we work with these few images in this last section on links. If you wish to e-mail me about some aspect of working with graphics, feel free to do so. I promise, however, that Module Three will hold a lot of answers for you. Just hang in there while we jump ahead of ourselves a bit.

For the time being we'll pretend you know how to place graphics on a web page using Dw.

In preparation for adding pictures to our web pages, we have to create a folder on the site, both locally and on the server, in which to store the images. Storing your graphics in a folder separate from your HTML is standard web design practice. As with any program, you can always create a new folder by opening the site files on your hard drive or other storage device and using the computer's tools. However, you learned at the end of Module One that creating a new folder is a snap (or a click). Use the method of your choice to create a folder called images in your main folder.

Dogpile buttonOnly your imagination limits the uses of graphic links on your web site, but an obvious one is a link to a search engine. Companies like Dogpile, Google, and Mamma appreciate it when you link to their sites because that means more traffic and more revenue for them. The Dogpile logo here is already a link. Try it.

Turning a graphic into a link is really easy. Click on the image you wish to use, then refer to the Properties Inspector. You'll see that a new window has opened, one specifically for a graphic, that gives you lots of information and allows you to do a fair amount of formatting. We won't go into the details of that window now, except to point out the space labeled Link. This is where you'll enter the URL for the link that is attached to the image.

At this time you'll need to download the sample graphics that we'll use for our guided practice. Please get your materials from the Mod II-3 Graphics Resource Page now. Return to this page by closing the window.

Guided Practice - Graphics that Link
Activity II-3

  1. With Dw running, find index.html in the Site Panel. Duplicate this file using the steps we practiced earlier. Rename the copy phase_2.html and upload it to BlueDrive. Now double-click on index.html to make it the active document in the Design View.
  2. Click on the horizontal rule under Seattle, Washington and Copy it.
  3. Place your cursor at the end of the page, just after "come back soon." Hit Enter.
  4. Paste the horizontal rule into the page. Hit Enter.
  5. Now type a short paragraph in which you invite your readers to use your page to do some searching on the World Wide Web. End your paragraph with, "Here are three search engines for your use." Hit Enter so your cursor is on a new paragraph.
  6. Find the images folder in your Site Panel; open it. Find the image called dogpile.gif. Click & Drag it to your web page, placing it at the end of the new paragraph.At this point, a dialog window will open.
    alt dialog window

    Alternate text, which you are asked to enter for each image, serves two purposes. You'll note that the dialog is called Image Tag Accessibility Attributes; this means that it's there asan aid to those who may not be able to see the image and are using a text reader instead. This information, called an alt tag in HTML, is also useful to your reader in the event the image doesn't load or is unable to load.

    Type in a brief description of the image; in this case it might be Dogpile logo. Then hit Enter or click on OK.

  7. Click on the Dogpile image once to select it. Now look at the Properties Inspector and find a thumbnail of the image, a size designation, and the file name (Src). If you've stored the image correctly, the Src window will say "images/dogpile.gif". Now place your cursor in the Link window and type http://www.dogpile.com. Hit Enter. The link is made.

    Tip:

    set border to zero When Dw uses an image for a link, it places a blue border around it automatically. You may not wish to have that happen (I certainly don't care for it), so you'll need to designate the image Border as 0 (zero).


  8. Click in the Design View, just to the right of the Dogpile button. Now find google.gif in the images folder. Click & Drag it so that it's on the right of Dogpile. Hmmm. That doesn't look so good, but we'll learn how to fix this in Module Three. Right now we have to make Google into a link. Click on the Google image and enter http://www.google.com in the link box. Hit Enter. Move your cursor to the Design View again, place it after the Google image, and hit Enter.
  9. Our third search engine will come to us directly from the Web. Go to this page at Mamma.com: http://www.mamma.com/info/services_tools/link_to_mamma.html. Find the subheading for search box 2, and copy the line of code below the graphic that starts, " <script language=javascript..." but do not copy the graphic for your page. Copy only the JavaScript that accompanies it. Open the Code View of index.html and Paste the script just below the code for the Google link. In the Properties Inspector, click on the Refresh button, then go back to the Design View of your page. NOTE: Instead of seeing the Mamma graphic you chose, you should see the Script icon -- . The reason the graphic doesn't show is that the script downloads it from the Internet when your page is viewed online. If you want to see what it looks like, switch to Live View. Just remember to "turn it off" because you can't edit your files in Live View.

    Tip:

    Java Scripts are all over the Web, but you're usually not aware of them. They often create interactive components of a web page, like the one you'll copy from Mamma. Here's the linked image that was created by entering the JavaScript in the Code View:  

    This is the script itself: <script language=javascript src=http://www.mamma.com/link2Mamma.php3?box=five></script>

    To learn more about JavaScripts, check out these web sites:
    A Beginner's Guide to JavaScript - http://javascriptguide.com/

    JavaScript.Com, The Definitive JavaScript Resource: JavaScript Tutorials and
    Free Java Scripts - http://javascript.com/

    JavaScript Source: Free JavaScripts, Tutorials, Example Code, Reference,
    Resources, and Help - http://javascript.internet.com/


  10. Compare your page with the model. Upload your revised index.html to the server.

II-4 - Link Buttons & Nav Bars

We used text to make a link index on our Glossary Page, but we can make an index with buttons almost as easily -- if you don't include the time it takes to make the button graphics. You already know how to make a graphic into a link, so there's really nothing new except the appearance and function of these links. We can make a set of buttons that look like this -- -- and arrange them in a column or a row. What's the advantage of a graphic button instead of a text? You can use any font you like on a graphic (and jazz it up a bit, too), but if you use text, the font you use must be installed on the reader's computer, too, or she won't see it as you designed it. I've supplied you with five buttons like the one above. But you also have a set of buttons that look like this: I've given you these because Dw has a nice utility that allows you to create a rollover image to make your links visually interesting and interactive. Nothing happens when you pass the cursor over the two Calendar link images above, but try passing your cursor over this: Go to the calendar page.. The link starts as the first image, but changes to the second image when the cursor moves over it -- a rollover. Move your cursor over the graphic below.

Rollover demo - Yes or No?Creating a rollover requires that you create the images, and we don't have enough time in this course to cover image software, too. If you're familiar with Photoshop you can create the images there. Dreamweaver is designed to integrate seamlessly with Fireworks, the Adobe/Macromedia program for Web image editing, however, and the buttons you downloaded earlier were all made in Fireworks. Now we'll turn them into rollovers for graphic links.

To insert a rollover image, click on the down arrowhead next to the Image button in the Common tab of the Insert Panel -- . Click the Rollover Image button -- -- that appears in the pop-up menu. You may also use the Insert menu --> Image Objects --> Rollover Image.

The following dialog box appears (the illustration has been cropped to fit on the screen):

Insert rollover image

  1. Type a name for the image in the Image Name box; since it's for the calendar link, let's use calendar.
  2. In the Original Image window, click on the Browse... button to find the button_text_calendar.gif in your images folder. In the Rollover Image window, browse to buttonA_text_calendar.gif. Be sure that the Preload Rollover Image box is checked. This means that the browser will load the second image as it loads the rest of the page and not wait to load it when you click on it.
  3. The Alternate Text (in HTML, the ALT tag) is what a browser will show as text if the image doesn't load or if the reader is vision-impaired and needs a text interpretation of the image. We'll use "Go to calendar page."
  4. Finally, we'll enter "../calendar.html" in the URL window. Then click on the OK button (not shown above) or hit Enter.

Using the Browse... tool.Not sure about Browse..? This short movie might clarify the process -- Using the Browse... tool. The movie will open in a new window. Close the window to return to this page.

Rollover images can be used for all kinds of creative imagery on your site, but when it's a link button, it often appears with other link buttons in a Navigation Bar. This structure is usually the main navigation device for a site and consists of a number of rollover images, usually arranged in a table. The Navigation Bar (or nav bar) has several traits that make it a valuable resource. First, it establishes a predictable navigation scheme for your site because it is meant to be used on all of the pages of the site. Second, once it is created it can be Copied & Pasted into other pages. Third, Dw allows you to update the navigation bar on all of your pages with one edit; it will update the rest of the site for you. NOTE: You may use only one navigation bar per page, and that navigation bar can be used only once on the page.

To create a Navigation (Nav) Bar, click on down arrowhead next to the Image button in the Common tab of the Insert Panel -- Insert image.. Click the Navigation Bar button --Insert navigation ar -- that appears in the pop-up menu. You may also use the Insert menu --> Image Objects --> Navigation Bar .

The dialog box is similar to the Rollover Image but with more options.

Navigation bar dialog box

The four buttons, add/remove nav bar element and move up or down in nav bar list, allow you to add or remove nav bar elements and move up or down in the list of elements you have in the nav bar, which is shown below these four buttons in the large illustration above. Element Name is what you will call each link on the Nav Bar. It should be short and have no spaces in it. Up Image is the image you wish to appear when the page first loads, an unclicked link as it were. Over Image is how the button looks when the cursor is passed over it. Down Image occurs when the reader clicks on the button. Over While Down Image is the appearance after the button has been clicked. Notice that the Browse... button allows you to find the image files easily (especially if they're in your images folder). It isn't necessary to have four different images in the four button states, but you must have at least an Up Image. But if you don't use at least two, what's the point? We'll make the first and last position one image, and the second and third position another image.

Going on in the Nav Bar dialog window, Alternate Text is defined above. Fill in the anchor or link address in When Clicked, Go To URL, or Browse... to the desired file. Ignore the Main Window button for now. Under Options, check Preload Images; do not check Show "Down Image" Initially. The options for Insert: (red arrow above) are Horizontally (in a line across the page) or Vertically (in a column down the page. Check the box marked Use Tables (we'll discuss why in Module Six). To add another button to the list, click on the Add icon at the top of the panel. After you have them all entered you can edit their order with the up and down arrows; click on the appropriate element in the Nav Bar Elements window, then use the arrows to change its place in the list. Use the Minus icon to remove a button from the list.

Home Page
Calendar button.
Homework
Lunch menu
Redaing List

Here is a nav bar that I created with the graphics provided on the resource page. I've linked the images to pages within our class web site rather than to create new pages. Try passing your cursor over each one and then try the link. Please return to this paragraph when you're done experimenting.

You've seen two ways to use interactive images on your links, although the rollover image can be used without a link, as you also saw above. Now it's time for you to practice what I've preached.

NOTE: It is not possible to change the orientation from Horizontal to Vertical or Vertical to Horizontal. You must create a new Nav Bar.

Movie buttonBuilding a navbar is pretty tricky. Here's a movie to show you the steps involved in creating a navbar. It's pretty long (2 minutes, 20 seconds), so be patient while it downloads to your computer.


Guided Practice - Rollovers & Nav Bars
Activity II-4

  1. Create a new document in your personal site folder by either going to the File menu --> New --> Basic Page --> HTML or by using the key combination Control/Command N. In the Title window of the Toolbar enter your page title as Graphic Link Practice.
  2. Save your page as graphic_interactive.html
  3. Using the graphics you have already downloaded to your images file (Home Page, Calendar, etc.), follow the steps above to recreate the navigation bar. As you add each button, link it to a page on the Internet of your choosing. Preview it in your browser (F12) when you're done.
  4. If you find you need to edit the nav bar, click on the nav bar icon -- Navbar icon -- again. You'll get this message: "Each page can have only one Navigation Bar, and one already exists on this page. Would you like to modify the existing one?" Click on OK or hit Enter. Then make your edits as needed and save again.
  5. When you are satisfied with the appearance and operation of your nav bar, hit Enter several times to get some space between the nav bar and your next activity.
  6. Using the graphics called night.gif and day.gif, construct a Rollover Image. Link it to this web address: http://www.solarviews.com/cap/earth/vearth3.htm When you set up the link, select _blank as the Target. Save and preview again.
  7. Need a sample page to help check your work? Here it is.
  8. Upload graphic_interactive.html to the server.
MinerWould you like to dig deeper?
An Extended Learning Opportunity

You may have noticed that rollovers are designed to be used as links. Would you like to create the same effect, but without the link? Check out the Image Swap option.

 

Tip:
Now that you're working with multiple documents in your Workspace, here's a shortcut that will save you lots of time. NOTE: This illustration is from CS3.

Right-click/Control+Click on the gray bar just above the Workspace (note the red arrow) and you'll see a powerful pop-up menu.workspace shortcuts

Dw has given you a very handy way to manage multiple files. Particularly useful are Save All and Close All. With one click you can save or close all the open documents. It's easy to clean up your Workspace and move on to another project. Note that you can also create a New... page or Open... an existing one.

You'll be very glad to have this tool in the near future!

 

Upload Review

Check your files on the server to be sure you have uploaded the following documents and the graphics that go with them:

  • phase_1.html
  • glossary.html
  • phase_2.html
  • index.html (revised with graphic links)
  • graphic_interactive.html

Have you linked to these documents on your portfolio page? Please do so before moving on.


Notify your instructor via e-mail when these five documents have been uploaded to your web site. Please include the full address (URL) of your portfolio page in your message.

When you have finished your work on this page, continue to the Assessment Page.

 

  Introduction | Readings | Instruction | Assessment | Calendar
Return to top
© COPYRIGHT 2009 James Erbe All Rights Reserved.
Logo design by Carlo Vergara and Phillip Martin.
Last Updated: Monday, November 9, 2009
http://www.uwstout.edu/soe/profdev/advwebdesign