Variables Actions - Adobe GOLIVE CS2 User Manual

Hide thumbs Also See for GOLIVE CS2:
Table of Contents

Advertisement

ADOBE GOLIVE CS2
635
User Guide
KeyCompare
The KeyCompare action launches an action when the viewer presses a selected key. This action is designed for use
with the Idle action, which must reside in the head section of the page as a browser-triggered event. You can use the
KeyCompare action, for example, to simulate Windows-style access keys for objects on your page.
To set up a KeyCompare action, trigger the action with a browser-triggered action set to OnLoad. Choose Action >
Specials > Idle. In the Condition tab of the Actions palette, choose Action > Specials > KeyCompare. Enter the ASCII
character code that corresponds to the desired keystroke in the CharCode text box. In the True tab, choose the action
you want the keystroke to trigger. Return to the page and add a visual hint for the viewer—for example, an instruction
such as "Press K".
Important: Do not specify an action in the False tab. If an action is specified in the False tab, it will be triggered before
the user has a chance to press a key to trigger the True condition.
Timeout
The Timeout action is a timer and switch combination that lets you specify a time span after which the browser
should switch between two states. This action is designed for use with the Idle action, which must go into the head
section of the page as a browser-triggered event. The condition it monitors is false while the timeout period still lasts
and true when the timeout period has elapsed. Either state has its own action. You can use this action to implement
a timed switch in the browser window—for example, to switch the content of a banner image.
To set up a Timeout action, trigger the action with a browser-triggered event set to OnLoad. In the Actions palette,
choose Action > Specials > Idle. In the Condition tab of the Actions palette, choose Action > Specials > Timeout. If
you want to have the action stop the first time the Timeout condition is true, select Exit Idle If Condition Returns
True. By activating this option, you instruct the browser to switch states once only.
Enter a time span in seconds in the Timeout (secs.) text box. In the True tab, choose the action to be triggered when
the Timeout limit has elapsed. For example, set the Timeout action to trigger a Set Image URL action, causing the
browser to change the content of an image. In the False tab, choose the action to be executed while the Timeout
period still lasts. In the example above, you would use a second Set Image URL action that supplies an alternative
image.
See also
"Set Image URL" on page 614

Variables actions

About Variables actions
GoLive features a set of actions in the Actions palette that allows you to use variables. You can use variables as input
for other scripted actions, replacing settings you would make in the Inspector.

Advertisement

Table of Contents
loading

Table of Contents