beautypg.com

Import effects from an svg file, Svg interactivity panel overview, Add svg interactivity to artwork – Adobe Illustrator CS3 User Manual

Page 383: Svg events

background image

ILLUSTRATOR CS3

User Guide

377

When you apply an SVG filter effect, Illustrator displays a rasterized version of the effect on the artboard. You can
control the resolution of this preview image by modifying the document’s rasterization resolution setting.

Important: An SVG effect must be the last effect when an object uses multiple effects; in other words, it must appear at
the bottom of the Appearance panel (just above the Transparency entry). If other effects follow an SVG effect, the SVG
output will consist of a raster object.

See also

“About raster effects” on page 352

“Modify or delete an effect” on page 353

Import effects from an SVG file

1

Choose Effect > SVG Filter > Import SVG Filter.

2

Select the SVG file you want to import effects from, and click Open.

SVG Interactivity panel overview

You use the SVG Interactivity panel (Window

> SVG Interactivity) to add interactivity to your artwork when it is

exported for viewing in a web browser. For example, by creating an event that triggers a JavaScript command, you
can quickly create movement on a web page when the user performs an action such as moving a mouse cursor over
an object. The SVG Interactivity panel also lets you see all the events and JavaScript files associated with the current
file.

See also

“Optimize an image for the web” on page 383

“Save in SVG format” on page 266

Delete an event from the SVG Interactivity panel

To delete one event, select it and click the Delete button or choose Delete Event from the panel menu.

To delete all events, choose Clear Events from the panel menu.

List, add, or remove events linked to a file

1

Click the Link JavaScript Files button

.

2

In the JavaScript Files dialog box, select a JavaScript entry and do one of the following:

Click Add to browse for additional JavaScript files.

Click Remove to remove the selected JavaScript entry.

Add SVG interactivity to artwork

1

In the SVG Interactivity panel, select an event. (See “SVG events” on page 377.)

2

Enter the corresponding JavaScript, and press Enter.

SVG events

onfocusin

Triggers the action when the element receives focus, such as selection by the pointer.