beautypg.com

Apply the go to url behavior, Apply the jump menu behavior, Apply the jump menu go behavior – Adobe Dreamweaver CC 2014 v.13 User Manual

Page 719: Apply the open browser window behavior

background image

To the top

To the top

To the top

To the top

Apply the Go To URL behavior

The Go To URL behavior opens a new page in the current window or in the specified frame. This behavior is useful for changing the contents of
two or more frames with one click.

1. Select an object and choose Go To URL from the Add Behavior menu of the Behaviors panel.

2. Select a destination for the URL from the Open In list.

The Open In list automatically lists the names of all frames in the current frameset as well as the main window. If there are no frames, the
main window is the only option.

Note: This behavior may produce unexpected results if any frame is named top, blank, self, or parent. Browsers sometimes mistake these
names for reserved target names.

3. Click Browse to select a document to open, or enter the path and filename of the document in the URL box.

4. Repeat steps 2 and 3 to open additional documents in other frames.

5. Click OK and verify that the default event is correct.

Apply the Jump Menu behavior

When you create a jump menu by using Insert > Form > Jump Menu, Dreamweaver creates a menu object and attaches the Jump Menu (or Jump
Menu Go) behavior to it. There is usually no need to attach the Jump Menu behavior to an object by hand.

You can edit an existing jump menu in either of two ways:

You can edit and rearrange menu items, change the files to jump to, and change the window in which those files open, by double-clicking an
existing Jump Menu behavior in the Behaviors panel.

You can edit the items in the menu just as you would edit items in any menu, by selecting the menu and using the List Values button in the
Property inspector.

1. Create a jump menu object if there isn’t one already in your document.

2. Select the object and choose Jump Menu from the Add Behavior menu of the Behaviors panel.

3. Make changes as desired in the Jump Menu dialog box and then click OK.

Apply the Jump Menu Go behavior

The Jump Menu Go behavior is closely associated with the Jump Menu behavior; Jump Menu Go lets you associate a Go button with a jump
menu. (Before you use this behavior, a jump menu must already exist in the document.) Clicking the Go button opens the link that’s selected in the
jump menu. A jump menu doesn’t normally need a Go button; selecting an item from a jump menu generally causes a URL to load without any
need for further user action. But if the visitor selects the same item that’s already chosen in the jump menu, the jump doesn’t occur. In general,
that doesn’t matter, but if the jump menu appears in a frame, and the jump menu items link to pages in other frames, a Go button is often useful,
to allow visitors to re-select an item that’s already selected in the jump menu.

Note: When you use a Go button with a jump menu, the Go button becomes the only mechanism that “jumps” the user to the URL associated
with the selection in the menu. Selecting a menu item in the jump menu no longer re-directs the user automatically to another page or frame.

1. Select an object to use as the Go button (generally a button image), and choose Jump Menu Go from the Add Behavior menu of the

Behaviors panel.

2. In the Choose Jump Menu menu, select a menu for the Go button to activate and click OK.

Apply the Open Browser Window behavior

Use the Open Browser Window behavior to open a page in a new window. You can specify the properties of the new window, including its size,
attributes (whether it is resizable, has a menu bar, and so on), and name. For example, you can use this behavior to open a larger image in a
separate window when the visitor clicks a thumbnail image; with this behavior, you can make the new window the exact size of the image.

If you specify no attributes for the window, it opens at the size and with the attributes of the window from which it was opened. Specifying any
attribute for the window automatically turns off all other attributes that are not explicitly turned on. For example, if you set no attributes for the
window, it might open at 1024 x 768 pixels and have a navigation bar (showing the Back, Forward, Home and Reload buttons), location toolbar
(showing the URL), status bar (showing status messages, at the bottom), and menu bar (showing File, Edit, View and other menus). If you
explicitly set the width to 640 and the height to 480 and set no other attributes, the window opens at 640 x 480 pixels, without toolbars.

1. Select an object and choose Open Browser Window from the Add Behavior menu of the Behaviors panel.

2. Click Browse to select a file, or enter the URL you want to display.

3. Set the options for window width and height (in pixels) and for the incorporation of various toolbars, scroll bars, resize handles, and the like.

Give the window a name (use no spaces or special characters) if you want it to be the target of links or want to control it with JavaScript.

4. Click OK and verify that the default event is correct.

712

This manual is related to the following products: