Download Adobe GoLive 4.0 User Guide

Transcript
Inserting Head Tags
Script
495
The Script icon inserts a tag that lets you add a JavaScript to your document head, allowing a script to be executed while the visible body
section of the document is still being loaded.
To insert a script, proceed as follows:
1 Drag the Script icon from the Palette and drop it in the head section of your document.
Inserting a Script
2 Type a name in the Name text box of the Inspector window, now
titled Head Script Inspector.
3 Select a JavaScript dialect from the Language popup menu.
The Head Script Inspector
Use this text box to name the JavaScript.
Select a JavaScript “dialect” from this popup
Click here to type in the resource locator of an
existing script, click Browse to select a script, or
click the Point & Shoot button to link to a script
in the Site Window.
Click Edit to open the Script Editor and start
scripting.
{
This checkbox converts the path
to the referenced script file to
an absolute path. This option is
discussed in the section Setting
Up Adobe GoLive to Use Absolute
Paths on page 719 in Chapter
17, Managing Web Sites with
Adobe GoLive.
4 Click the Edit… button in the Head Script Inspector or doubleclick the Script icon in the head section to open the script editor.
Alternatively, click the Point & Shoot button to link to a script in the
Site Window., or place the cursor in the Source text box and type in
the resource locator of an existing script, click Browse to select a
script in the subsequent dialog box, or
For more details on JavaScript and the Script Editor, please refer to
The JavaScript Editor on page 188.