CREATE A JAVASCRIPT ROLLOVER WITH
FIREWORKS
Quick
Reference
Step 1: Obtain and install MacroMedia
Fireworks.
Step 2: Create a new, original image file
(this will be the default image)
- From the FILE menu, choose NEW.
- Select the dimensions of your graphic
(Example: 150 pixels wide, 50 pixels high).
- Click OK.
Step 3: Create the original (UP) and rollover
(OVER) images
- From the INSERT menu, choose NEW SYMBOL. Click
BUTTON, then click OK.
- In the work area of the button area (the new
active window), create or import a graphic that will serve as the
"Up" image (default).
- Click the text tool ()
and click inside the work area to insert text.
- Choose the text color, font, and size as
desired using the tools at the top of the window.
- Click OK when finished entering and
formatting text.
- Click on the Pointer tool ()
and then click on your text box or other graphics to move them.
Once selected, you can make minute changes in position using
the cursor keys.
- Click the box to choose "Onion Skinning."
(this allows you to precisely align your images)
- Click the OVER tab. (This image will be
displayed when the mouse passes over the graphic.)
- Click "COPY UP GRAPHIC" to paste a copy of the
"UP" state graphic you just created, and then modify it if
desired.
- Double click a text box and choose a
different text color if desired.
- When prompted if the colors "in other
button states" should also be changed, choose NO.
- Skip the DOWN and OVER WHILE DOWN
tabs.
- Click the ACTIVE AREA tab.
- Click the LINK WIZARD to add a URL to the
button.
- Click the LINK tab to type a URL, or the FILE
tab if you want to create a relative link to a local
file.
- Click the close box to close the button
window.
Step 4: Save your file and export the separate
image files and html code
- From the FILE menu, choose SAVE.
- Save the file in png format on your hard
drive.
- From the FILE menu, choose EXPORT.
- Create a new folder on your desktop or
elsewhere to contain the graphics and html code file.
- Make sure GENERIC is selected under HTML
Settings.
- Give your file a name and click
EXPORT.
Step 5: Move the image files and copy source
code into your webpage
- Copy all the image files you exported into the
folder containing your webpage. Make sure you copy them at the
same level as the page in which they will be used (don't put them
in a separate images folder).
- Open the HTML file you created in the export
process. Copy the source code as explained in the file:
- Javascript code must be copied/pasted into
the <head> section of your webpage.
- The HTML table that inserts the images into
your document should be copied/pasted in the desired location
in your webpage.
That's it-- you're finished! :)
- Note that you can use and modify already
created buttons in Fireworks. After creating a new file, from the
INSERT menu choose LIBRARIES and then BUTTONS.
-
Home - Basic
Course - Intermediate Course -
Tools for the TEKS
Course
and Website by Wesley A.
Fryer of Lubbock, Texas.
Site sponsored by WesTech Vision
Inc.