Extending Golive Actions; Golive Action Types; Adding Actions To A Page - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

12

Extending GoLive Actions

Adobe GoLive actions are built-in scripting components that allow you to add JavaScript and Dynamic
HTML to your web pages to make them interactive.
GoLive actions are editable and extensible. You can use the predefined actions, or create your own to
develop even more powerful custom solutions. This chapter provides information you need to edit or
create your own actions. See also the Adobe GoLive CS2 User Guide and the GoLive online help for
information on using existing GoLive actions.

GoLive Action Types

JavaScript actions that you add to your page can be initiated by any number of page-interaction events,
such as clicking a mouse button, moving the mouse cursor, double-clicking, pressing a key, or loading a
page. Each type of events has an associated event handler, which you use to trigger the script. There are
three main types of actions, characterized by the types of events that can trigger them:
Browser-triggered actions take place automatically as the result of browser activity, or when an action
is triggered by another action. You can set up a browser-triggered action to take place as a page loads,
when the page is finished loading, when the browser loads a specific line of code in the body or head
section of a page, or when another action triggers the action.
User-triggered actions occur when a user interacts with some item on the page such as an image,
rollover, text, or form element.
Timeline actions are triggered at the point in time they are located in the DHTML Timeline Editor. These
time-based actions can interact with a given scene in an animated layer. Add actions to the action track
of the TimeLine Editor with Ctrl-click (Windows) or Command-click (Mac OS). See the Adobe GoLive CS2
User Guide and the GoLive online help for details.

Adding actions to a page

You can add an action to your page by inserting a Head Action or Body Action icon from the Smart objects
group in the Objects Palette. Dragging the Head Action icon from the palette into your page automatically
adds it to the page header. A Body Action icon adds the action into the page selection. In either case,
156

Advertisement

Table of Contents
loading

Table of Contents