Adobe GOLIVE CS2 User Manual page 613

Hide thumbs Also See for GOLIVE CS2:
Table of Contents

Advertisement

See also
"Navigating source code by function" on page 600
"Source preferences" on page 578
To edit an existing JavaScript
To open the JavaScript Editor, do one of the following:
1
Double-click the JavaScript icon
Select the JavaScript icon in the document window, and then click the Edit button in the Inspector.
If the icons on the toolbar in the JavaScript Editor are inactive, choose a script name from the list at the left side
2
of the JavaScript Editor.
Create event definitions by entering event codes in the Event Code text box.
Choose an option from the View menu, and then drag an object from the Object list in the Script Inspector to the
3
JavaScript Editor window. For example, choose Events from the View menu to display a list of JavaScript events that
you can insert in your JavaScript.
In the Script Inspector, enter event code in the Event Code text box to create event definitions.
4
Choose a function declaration from the Navigate Through Code pop-up menu in the JavaScript Editor toolbar to
navigate directly to that location in the script. (See "Navigating source code by function" on page 600.)
Close the JavaScript Editor to save your work.
5
6
Do one of the following to open your web page in the browser you selected for previewing and testing in the
Preferences dialog box:
Choose File > Preview In > Default Browser.
Click the Preview In Browser button
Sample JavaScript code
The following sample JavaScript code shows how to use a simple JavaScript to display the time and date obtained
from the viewer's operating system.
in the document window.
on the toolbar.
ADOBE GOLIVE CS2
604
User Guide

Advertisement

Table of Contents
loading

Table of Contents