Adobe 38040334 - Dreamweaver CS3 User Manual page 366

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

See also
"Create frames and framesets" on page 205
Apply the Set Text Of Container behavior
The Set Text Of Container behavior replaces the content and formatting of an existing container (that is, any element
that can contain text or other elements) on a page with the content you specify. The content can include any valid
HTML source code.
You can embed any valid JavaScript function call, property, global variable, or other expression in the text. To embed
a JavaScript expression, place it inside braces (
Example:
The URL for this page is {window.location}, and today is {new Date()}.
Select an object and select Set Text > Set Text Of Container from the Actions menu of the Behaviors panel.
1
2
In the Set Text Of Container dialog box, use the Container menu to select the target element.
Enter the new text or HTML in the New HTML box.
3
Click OK and verify that the default event is correct. If not, select another event or change the target browser in
4
the Show Events For submenu.
See also
"Insert an AP Div" on page 152
Apply the Set Text Of Status Bar behavior
The Set Text Of Status Bar behavior shows a message in the status bar at the lower-left corner of the browser window.
For example, you can use this behavior to describe the destination of a link in the status bar instead of showing the
URL associated with it. Visitors often ignore or overlook messages in the status bar (and not all browsers provide full
support for setting the text of the status bar); if your message is important, consider displaying it as a pop-up message
or as the text of an AP element.
Note: If you use the Set Text Of Status Bar behavior in Dreamweaver, the text of the status bar in the browser is not
guaranteed to change because some browsers require special adjustments when changing status bar text. Firefox, for
example, requires that you change an Advanced option that lets JavaScript change status bar text. For more information,
see your browser's documentation.
You can embed any valid JavaScript function call, property, global variable, or other expression in the text. To embed
a JavaScript expression, place it inside braces (
Example:
The URL for this page is {window.location}, and today is {new Date()}.
1
Select an object and choose Set Text > Set Text Of Status Bar from the Actions menu of the Behaviors panel.
In the Set Text Of Status Bar dialog box, type your message in the Message box.
2
Keep the message concise. The browser truncates the message if it doesn't fit in the status bar.
3
Click OK and verify that the default event is correct. If not, select another event or change the target browser in
the Show Events For submenu.
). To display a brace, precede it with a backslash (
{}
). To display a brace, precede it with a backslash (
{}
September 4, 2007
DREAMWEAVER CS3
359
User Guide
).
\{
).
\{

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents