Javascript Rollovers; Button Rollovers - MACROMEDIA FIREWORKS 2-USING FIREWORKS Use Manual

Hide thumbs Also See for FIREWORKS 2-USING FIREWORKS:
Table of Contents

Advertisement

JavaScript rollovers

JavaScript rollovers are images that change appearance
in a web browser when you move the mouse over them
or click them. JavaScript rollovers are created by drawing
different rollover states, and then using JavaScript
within an HTML file to switch to a different image for
certain events, such as moving the mouse over the image
or clicking the image.
To create a JavaScript rollover:
Draw each rollover state on a separate frame,
1
with each state positioned at the same location
on each frame.
Draw slice objects or hotspot objects to define
2
event areas.
An event area is the area used to trigger a rollover.
Select each event area, and then choose a
3
rollover behavior from the Add Behaviors pop-up
on the Behaviors inspector.
Choose File > Export, optimize the image in the
4
Export Preview, then click Next.
In the Export dialog box, choose an HTML output
5
format, specify a destination for the images and
the HTML file, and then click Export or Save.
When exporting rollovers, Fireworks automatically
generates the JavaScript necessary to display the
rollovers in a web browser and exports that JavaScript in
an HTML file. View this HTML file in a web browser
to preview the JavaScript rollover.

Button rollovers

A common use of JavaScript rollovers is to create
buttons that change appearance when the cursor is
moved over them in a web browser. Each appearance, or
state, of a button is a different image. Four states can be
used when creating a button: Up, Over, Down, and
OverDown. Each state is drawn on a different frame
using frames one through four.
120
Chapter 4
The following table describes the buttons states and on
which frame to draw them.
State
Description
Up
Default button appearance.
Over
Button appearance when the
cursor moves over it.
Down
Button appearance on its
destination page.
See "The Down state" for
more information.
OverDown Button appearance as it is
clicked. Or, when creating a
toggle-group rollover,
OverDown is the appearance
of a Down state when the
cursor is moved over it.
To create a JavaScript rollover button:
Draw each button state on its appropriate frame.
1
Draw a slice object over the button.
2
Select the button's slice object, and then choose
3
Simple Rollover from the Add Behaviors pop-up
on the Behaviors inspector.
If the button has a Down state or an OverDown
4
state, check Include Down state or Include
OverDown state in the Simple Rollover dialog
box, and then click OK.
Choose File > Export, optimize the image in the
5
Export Preview, then click Next.
In the Export dialog box, choose an HTML output
6
format, specify a destination for the images and
the HTML file, and then click Export.
Location
Frame1
Frame 2
Frame 3
Frame 4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIREWORKS 2-USING FIREWORKS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Fireworks 2

Table of Contents