===============================================================

Fireworks Hotspots and Slices

Module D34i

* About this document... * Audience and Objectives *
 
If you are using a browser, you can click on this separator wherever you see it to return to the top of the page
===============================================================

Overview

In this exercise, you'll be taking an image and adding hotspots that produce pop-up text and images when the mouse rolls over them, as well as links to other Web sites.

When you're done, your image should allow the user to look at a panoramic photograph, point to various areas of the panorama, and have a detailed image appear. The user should also be able to click on that part of the image and be linked to a more detailed page of information. The image shown here works that way:

Christiansborg Christiansborg Outer Harbor Christianshavn Outer Harbor Outer Harbor Refshaleøen Outer Harbor Refshaleøen Christianshavn Refshaleøen Christianshavn Kanal DFDS Seaways Christiansborg Christianshavn DFDS Seaways Outer Harbor DFDS Seaways Outer Harbor Outer Harbor Outer Harbor Christianshavn Christianshavn Outer Harbor Christianshavn Kanal Christianshavn Christianshavn Christianshavn Kanal Christianshavn Christianshavn Kanal Christianshavn Christianshavn Christianshavn Kanal Christianshavn Christianshavn Christianshavn Outer Harbor Christianshavn Christianshavn Outer Harbor Christianshavn Kanal Christianshavn Christianshavn Christianshavn Christianshavn Christianshavn Kanal

Notice that although the hotspots are rather like rollover buttons, the place where the mouse rolls isn't the same as the place where the image changes.


===============================================================

Step 1: Pick up and save the images

In the space below are the images you'll use. They depict Copenhagen, Denmark, in digital photographs taken from the tower of Vor Frelsers Kirke, with details from various other points.

Create a directory on your Zip disk for this project. Then right-click on each image, and from the pop-up menu choose Save Image As... Save each picture in the new directory on your Zip disk.

Panorama
Crown

Shipping Company Logo
Mermaid

Canal Scene 1
Canal Scene 2
Customs House
Tower
   


===============================================================

Step 2: Open the panorama in Fireworks

The panorama is the base of the exercise. Open it using Fireworks.

The process of creating a hotspot and pop-up has three main parts:

    1. Creating the frame with contents which will pop up - the "swap image"';
    2. Slicing the swap area; and
    3. Creating the hot spot itself.

We'll be putting in a total of seven hotspots with slices, so you'll get practice! We'll start with the details of the first slice; the rest will be explained in a less detailed way.


===============================================================

Step 3: Put in the first slice and hotspot

A. Create the Swap Image

  1. Open the image. The first hotspot will be the royal palace (Christiansborg) area, so the corresponding pop-up will be the crown. Open it in Fireworks: d34i_p1.jpg.
  2. Get the image. Use the rectangle marquee tool.
    Optional extra: In the Tool Options, you may want to choose Feather - about 20 pixels works well. If you do this, you will also need to put background behind the copied slice, which can be tricky.
  3. Select the image (or the part you want) and use Edit > Copy or ^C to copy it.
  4. Make a new frame. Click back into the panorama image. Each pop-up has to be in a frame of its own. In the Frames palette, create a new frame. Double-click the name of the frame and give it a distincitve name - in this case, Christiansborg or Crown.
  5. Paste the new image in. Drag it to where you want it. For the first one, put the crown in the upper left corner of the sky. You may need to click the Transform Tool and make the image smaller if it takes up too much space.
  6. Enter the text. We'll have the name of each area pop up along with the picture. Select the text tool and click near the small image, still in the frame. In the text editing window, type the name: Christiansborg. I used 15 pixel Arial Narrow and found it worked well. I centered the line also. Click OK.
  7. Make the text look good. Drag the text to a good location near the pop-up picture. While it's selected, use Effects in the Properties box to give it a glow. I used a very light yellow for the glow and black for the text, but you may want to experiment with other colors.

B. Create the Slice

  1. Slice it. Use the Slice tool to create a rectangle around both the picture and the text. This marks out the area that will be swapped to make the picture "pop up". Fireworks normally show the slice in green with red guide marks to show where the entire image will be sliced.
  2. Name the slice. Fireworks will automatically give each slice a name, but in order to recognize it easily, it helps to give it one yourself. While the slice is selected, click in the Properties box. In the upper left corner, under the word "Properties" you should see "Slice" and a white field with the file name and _r1_c1 (for example, cities_r1c1). That's the name of the slice. Type in a name you'll recognize. For this first slice, call it either Crown or Christiansborg.

Optional Extra - do this if you feathered your pop-up selection.

C. Create the Hotspot

Here's a copy of the panorama giving the approximate area to outline for the first hotspot:

  1. Create the hotspot. Use the polygon Hotspot tool. Click the tool around the edges of the area until you close the path.
  2. Define the behavior of the hotspot. With the selection arrow, click the white circular medalion in the hotspot. In the menu that pops up select Add Swap Image Behavior.
  3. Set the Swap. In the dialog window that opens, there are two things to select:
    1. The slice: Here's where you choose the slice you just created. The first time, there will be only one to choose from, but as you make more you'll be glad if you gave them distinctive names!
    2. The frame: This determines which frame will be used in the slice. If you gave the frame a recognizable name, just click on that name; otherwise, try to remember which frame-number you put it in.
    3. "Preload Images" and "Restore Image on mouseOut" should both remain checked.
  4. Set the Link. Go to the Properties window and set the three items there.
    1. The Link itself: for the first hotspot, use http://www.ses.dk/ses_web/html/dk_slotte/chrslot.htm
    2. The Alt text: Just to keep things simple, use the same name as you used for the slice name - Crown or Christiansborg.
    3. The Target: give the target a name, such as Details, so the browser will open the link in a separate window. This makes it easier for users to keep the image map in front of them.

Save your file and check it with the Preview tab!

===============================================================

Step 4: Create the rest of the pop-ups

Here is a copy of the panorama with the approximate locations of all seven hotspots. Use it to finish the image map.

Use these Links:

  1. Crown: http://www.ses.dk/ses_web/html/dk_slotte/chrslot.htm
  2. Shipping Company Logo: http://www.dfds.com/
  3. Mermaid: Link to http://www.woco.dk/show.asp?id=352
  4. Customs House: http://www.copenhagenpictures.dk/cop_harb.html
  5. Canal Scene 2: http://www.netto-baadene.dk/engelsk1.htm
  6. Canal Scene 1: http://www.ravelinen.dk/his-6uk.htm
  7. Tower: http://www.vorfrelserskirke.dk/frontpage.htm

===============================================================

Step 5: Export

Use File > Export, saving the HTML as well as the image slices. (Do not use the Dreamweaver Library option.) Create a separate directory for this project, as it will create many,many files!


===============================================================

Step 6: Upload

Upload the files into a separate directory on your Web server, and email the instructor with the URL of the HTML file.


Audience: This is for people who have created buttons and rollovers in Fireworks (see D33i "Fireworks Buttons and Rollovers" or D32h "Exploring Fireworks, Part 2" (deprecated) and would like to create hotspots for image mapping and masks for special effects.
Objectives: When you successfully complete this lesson, you will be able to...

  1. Explain Hotspot
  2. Explain Slice
  3. Create hotspots
  4. Use slilces and hotspots to create text and image effects
  5. Link hotspots to external Web pages.

About this document...
Module D34i: This document is part of a modular instruction series in computer technology. For more information, see the overview or the list of modules in this series, D: Desktop Publishing and Computer Graphics. This document has been used in the following classes:

Author: Laurence J. Krieg
Institution: Internet Professional Department, Washtenaw Community College

History: Original: November 2000; This revision posted Monday, 31-Aug-2009 11:47:56 EDT

Copyright © 2002, Laurence J. Krieg, Washtenaw Community College

Instructors: You are welcome to point to this file in your Web-based materials.
Students: you may make a copy for your personal use.

All other uses: contact the author, Laurence J. Krieg for permission.