The use of Dreamweaver behavior

Source: Internet
Author: User
Tags contains insert time interval valid browser cache dreamweaver
Dreamweaver Dreamwreaver with a lot of action, the following is described separately.

1.Call JavaScript
Call JavaScript (invoke JavaScript) action allows a behavior controller to specify the line of custom functions or JavaScript code that will be executed when an event occurs.
To use call JavaScript (invoke JavaScript) action: Select an object and open the behavior controller, click the Plus button, select Call Javascrip from the Action pop-up menu, and type the JavaScript or function name to be executed in the pop-up dialog box.

2.Change Property
You can change the property value of an object by using the Change property (changing attribute) action. The properties that can be changed are determined by the type of the target browser. Internet Explorer (IE) 4.0 browsers can change a lot more properties than IE3.0 or Netscape Navigator3.0 or 4.0 browsers. To use the Change property action, you must be familiar with HTML and JavaScript languages.

3.Check Browser
Use check Browser (check browser) actions to send different pages depending on the type and version of the visitor's browser. For example, if a visitor is using Netscape Navigator4.0 or a later version of the browser, you can boot it to a Web page; If the visitor is using the Internet Explore4.0 or its subsequent version of the browser, you can direct it to another page, if the visitor is using a different type of browser, you can keep the current page.

4.Check Plugin
Using the Check Plugin action, you can decide whether or not to send a different page to a visitor by installing a specific plug-in. For example, you can allow visitors who have installed the Shockwave plugin to access a Web page, and visitors who do not have it installed visit another page.

5.Control Shockwave or Flash
You can play, stop, replay, or go to a frame in a Shockwave or Flash movie by using control Shockwave or flash (controlling Shockwave or Flash Movie) actions.

6.Drag Layer
The Drag Layer (drag layer) action allows a visitor to use the action of a drag layer. Use this action to create your own brain, slide control, and other removable page elements.

7.Go to URL
You can open a new page in the current window or in a specified frame by using the Go to URL (goto URL) action. This action is especially useful for changing the contents of two or more frames when you want to click once. In addition, in the timeline (timeline), you can call this action to allow visitors to jump to another page after a specific time interval.

8.Jump Menu
When you create a Jump menu (Jump menu) action using the Insert>form object>jump menu (Insert > Form object > Jump menu), Dreamweaver creates the menu object and attaches the appropriate behavior to the object. There is usually no need to manually add the Jump menu action, we can double-click an existing Jump menu action in the behavior controller to edit the new one.

9.Open Browser Window
You can open a URL in a new window by using the Open Browser window (open browser windows) action. You can specify the properties of the new window, including its size, attributes (whether the form is resizable, whether it has a menu bar, and so on), and the name.
If you specify that a new window has no attributes, the new window opens with the size and properties of the window that started it. Specifying any properties for the new window automatically closes all other unspecified attributes. For example, if you specify that a new window has no attributes, it may be opened in 640x480 pixel size and have a navigation toolbar, Position toolbar, status bar, and menu bar; But if you only specify that a new window be opened in 640x480 pixel size without specifying the remaining properties, it is 640x 480 pixel size is turned on, but there is no additional navigation toolbar, Location toolbar, status bar, menu bar, adjustment handle, and scroll bar, so this behavior is ideal for opening a custom window that is very versatile.

10.Play Sound
Use the play Sound (playing sound) action to play a sound. For example, we might want visitors to have a sound effect when they move the mouse over a link, or to play a music fragment when the page is loaded.

11.Popup message
The popup Message (popup) action is displayed in the JavaScript warning box with the message we specify. Because there is only one button (OK) in the JavaScript warning box, you can use this action to give the visitor information rather than provide a choice.

12.Preload Images
Preload Images (preloaded image) Actions load images that do not immediately appear in the Web page to the browser cache, such as those that use the timeline, behavior, or JavaScript transform. This prevents the delay caused by the download due to the image display.

13.Set Nav Bar Image
Using the Set Nav bar image (set navigation bar images) action can convert an image into a navigation bar image or change the display and action of the image in the navigation bar.

14.Set Text of Frame
The set text of frame (body in the set frame) action allows us to dynamically set the body in the frame, replacing the content and formatting in the original frame with the specified content. The specified content contains any valid HTML.
Although the text in the set text of frame (the body in the setup frame) can override the formatting in the original frame, we can also preserve the background and text color properties of the page by choosing to preserve the background color.

15.Set Text of Layer
Set text of Layer (body in the set layer) action replaces content and formatting in the original layer with the specified content. The specified content contains any valid HTML.

16.Set Text of Status Bar
The set Text of status bar (set status bar information) action displays information in the status bar in the lower-left corner of the browser window. For example, you can use this action to describe a link's purpose in the status bar instead of the URL that displays the link.

17.Set Text of text Field
The set text of text field, which sets the text in a text field, can be used to represent the contents of a text field in a single object, using what you specify.

18.show-hide Layers
Use the Show-hide Layers (show or hide layer) action to show, hide, or restore the default display state of one or more layers. This action is useful for displaying information when the visitor interacts with the Web page. For example, when a visitor moves the mouse over a map, you can have the visitor trigger a layer that describes the information about the area.

19.Swap Image
The Swap image (rollover) action can transform the image into another image by changing the SRC attribute of the IMG (image) label. Use this action to create a button transformation and other image effects, including multiple images at once. Because only the SRC attribute is affected in this action, the transform image should have the same dimensions as the original image (that is, the same height and width) to prevent the image from being distorted.

20.Swap Image Restore
The Swap image Restore (rollover restoration) action restores the last set of transform images to the original image. This action is automatically added when you attach a swap image (rollover) action for an object, and if you select the Restore Images onmouseout (transform image restore when the mouse moves the image) option, then swap image Restore (Transform image Restore) action does not need to be manually selected.

21.Go to Timeline Frame
The go to Timeline frame (to timeline frames) action moves the playback head (playhead) to the specified frame. You can use this action in the Timeline Checker's behavior channel to set a portion of the timeline to loop several times, create rewind links or buttons, or let visitors jump to other parts of the animation.
Set method: Open the Timeline checker, select the frame on the timeline for additional behavior on the animation bar, click the Plus button on the behavior inspector, and select Timeline>go to Timeline frame (Timeline > to Timeline frame) from the Action pop-up menu. Select a timeline in the dialog box that appears, enter the frame number in the Go to frame field (that is, go to the frame), and click OK. Then change the default event to what we want.

22.Play Timeline and Stop Timeline
Use the play Timeline and stop Timeline (playback timeline and stop timeline) actions to allow visitors to start and stop playing the timeline by clicking a link or button, or to allow visitors to move to a link in the mouse, Causes the timeline to start automatically and stop playback on an image or other object. If you select the AutoPlay (AutoPlay) option in the Timeline checker, play Timeline (playback timeline) action will automatically use the OnLoad event to attach to the body tag.

23.Validate Form
The Validate form (validation form) action detects the contents of a specified text field to ensure that the data type entered by the visitor is correct. Attaching the action to a separate form field with the Onblur event, detects the field when the visitor fills out the form, and attaches the action to the form with the onsubmit event, then evaluates several fields as soon as the visitor clicks the submit button. Attaching this action to the form prevents the specified domain from having invalid data submitted to the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.