Adobe 38040334 - Dreamweaver CS3 User Manual page 367

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

Advertisement

Apply the Set Text Of Text Field behavior
The Set Text Of Text Field behavior replaces the content of a form's text field with the content you specify.
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()}.
Create a named text field
Select Insert > Form > Text Field.
1
If Dreamweaver prompts you to add a form tag, click Yes.
In the Property inspector, type a name for the text field. Make sure the name is unique on the page (don't use the
2
same name for multiple elements on the same page, even if they're in different forms).
Apply Set Text Of Text Field
Select a text field and choose Set Text > Set Text Of Field from the Actions menu of the Behaviors panel.
1
Select the target text field from the Text Field menu and enter your new text.
2
Click OK and verify that the default event is correct. If not, select another event or change the target browser in
3
the Show Events For submenu.
Apply the Show-Hide Elements behavior
The Show-Hide Elements behavior shows, hides, or restores the default visibility of one or more page elements. This
behavior is useful for displaying information as the user interacts with the page. For example, as the user moves the
pointer over an image of a plant, you could show a page element giving details about the plant's growing season and
region, how much sun it needs, how large it can grow, and so on. The behavior only shows or hides the pertinent
element—it does not actually remove the element from the flow of the page when it is hidden.
1
Select an object and select Show-Hide Elements from the Actions menu of the Behaviors panel.
If Show-Hide Elements is unavailable, you probably have an AP element selected. Because AP elements do not accept
events in both 4.0 browsers, you must select a different object—such as the
From the Elements list, select the element you want to show or hide and click Show, Hide, or Restore (which
2
restores the default visibility).
Repeat step 2 for all remaining elements whose visibility you want to change. (You can change the visibility of
3
multiple elements with a single behavior.)
4
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 (
{}
<body>
September 4, 2007
DREAMWEAVER CS3
User Guide
).
\{
tag or a link (
tag).
<a>
360

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents