SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 429 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

Press Enter (Return) to confirm your tag.
The Quick Tag Editor closes, and Dreamweaver places the tag before your selection and a corresponding
closing tag after it.
Edit Tag mode
If a complete tag??”either a single tag, such as , or a tag pair, such as

...

??”is selected,
the Quick Tag Editor opens in Edit Tag mode. Unlike the other two modes (in which you are presented
with just open and closing angle brackets and a flashing cursor), the Edit Tag mode displays the entire
selected tag with all its attributes, if any. You can always invoke the Edit Tag mode when you start the Quick
Tag Editor by clicking its icon in the Property inspector.
The Edit Tag mode has many uses. It??™s excellent for adding a parameter not found on Dreamweaver??™s
Property inspector. For example, when you are building a form, some text fields have pre-existing text in
them??”which you want to clear when the user clicks into the field. To achieve this effect you add a minor
bit of JavaScript, a perfect use for the Edit Tag mode. Therefore, you can just select the tag from the Tag
Selector and then click the Quick Tag Editor icon to open the Quick Tag Editor. The tag
appears with your current parameters, as shown in Figure 6-26. After you have opened it, tab to the end of
the tag and enter this code:
onFocus=???if(this.


Pages:
417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441