
638
ADOBE GOLIVE CS2
User Guide
Test Variable
Test Variable is an extension to the Idle action that allows you to read the current value of a variable at runtime and
compare it with a value you specify. This comparison evaluates either as true or false, and the result can be used to
trigger two alternative actions.
Trigger the action with a browser-triggered event set to OnLoad in the head section of the page. In the Actions
palette, choose Action > Special > Idle. In the Condition tab of the Actions palette, choose Action > Variables > Test
Variable. Choose the variable whose value you want to compare from the Variable menu. The Value item changes
automatically with the type of the variable. Use the appropriate control to supply a value you want to test the variable
against by using the Init Variable action. Choose the type of comparison from the Operation menu.
Note:
Not all comparison operators work with all types of variables. For example, using “Greater than” with a string
variable will result in a JavaScript error in the browser because the browser expects a number.
See also
“Init Variable” on page 637
Times Visited
The Times Visited action displays messages that are customized according to the number of times a viewer visits the
web page. (This action uses cookies. If a viewer’s browser is set to disable cookies, the action will not function.)
Trigger the action with a browser-triggered event set to OnLoad, a user-triggered event, or a timeline-triggered
event. Choose Action > Variables > Times Visited. Enter a message in the 1st Time Visitor Message text box. To
display a different message when the viewer revisits the page, select the Show This M Total Visits option, and
enter a message. (The number of times the viewer has visited the page will appear next to the message in the browser
alert window.) To have an additional message appear after the viewer has visited the page a specified number of times,
select the Optional Message option, enter a message, and enter the number of visits criterion. Enter a name for the
cookie.
When you preview the action multiple times in a browser, you can simulate the browser’s behavior when viewers visit
the page for the first time by renaming the cookie before previewing the page.
VisitorCookie
VisitorCookie lets you create a custom page for first-time visitors. The first time a viewer visits the page or performs
a specific mouse event, the VisitorCookie action creates a cookie. The cookie is stored on the viewer’s computer if
they have not set up their browser to deny cookies. On subsequent visits or mouse events, the viewer is redirected to
a different page. For example, you might want first-time visitors to go to a special page with a “Welcome” message,
but to the main page on subsequent visits.
Trigger the action with a user-triggered event, or a browser-triggered event set to OnLoad. Choose Action >
Variables > VisitorCookie. Enter a name in the Give Your Cookie A Unique Name text box. For Redirect After 1st
Visit link destination, reference a page to display the next time the viewer triggers the action.
WriteCookie
The WriteCookie action allows you to store the value of a variable temporarily on the viewer’s hard disk. This
function enables you to make viewer-customizable pages, because it allows the viewer to change the properties of the
browser window and reload their own personalized version of the page later on.
Summary of Contents for GOLIVE CS2
Page 1: ...Chapter 1 Copyright User Guide...
Page 251: ...ADOBE GOLIVE CS2 242 User Guide...