beautypg.com

Using javascript behaviors with frames – Adobe Dreamweaver CS3 User Manual

Page 220

background image

DREAMWEAVER CS3

User Guide

213

Select Window > Code Inspector, place the insertion point between the

body

tags that appear inside the

noframes

tags, then type the HTML code for the content.

3

Select Modify > Frameset > Edit NoFrames Content again to return to the normal view of the frameset document.

Using JavaScript behaviors with frames

There are several JavaScript behaviors and navigation-related commands that are particularly appropriate for use
with frames:

Set Text Of Frame

Replaces the content and formatting of a given frame with the content you specify. The content

can include any valid HTML. Use this action to dynamically display information in a frame.

Go To URL

Opens a new page in the current window or in the specified frame. This action is particularly useful for

changing the contents of two or more frames with one click.

Insert Navigation Bar

Adds a navigation bar to a page; after inserting a navigation bar, you can attach behaviors to

its images and set which image displays based on a visitor’s actions. For example, you may want to show a button
image in its Up or Down state to let a visitor know which page of a site is being viewed.

Insert Jump Menu

Sets up a menu list of links that open files in a browser window when clicked. You can also target

a particular window or frame in which the document opens.

See also

“Apply the Set Text Of Frame behavior” on page 358

“Apply the Go To URL behavior” on page 355

“Apply the Set Nav Bar Image behavior” on page 357

“Apply the Jump Menu behavior” on page 355

September 4, 2007