Adobe 38040334 - Dreamweaver CS3 User Manual page 227

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

Advertisement

visibility: visible">
<form name="theForm">
<textarea name="scriptCode" cols="80" rows="20" wrap="VIRTUAL" ¬
onBlur="updateScript()"></textarea>
</form>
</div>
</body>
</html>
Save the file as scriptEditor.htm in the Configuration/Floaters folder.
2
Both
tags use the
div
style
and default
setting (
visibility
and a series of break (
) tags to position the text in the center of the panel. The
br
with a single
to display the selected JavaScript code. The
textarea
event occurs, indicating that the selected code has changed, the
changed text back to the document.
Writing the JavaScript code
The JavaScript code for the Script Editor consists of one floating panel function that Dreamweaver calls,
, and one user-defined function,
changed()
selectionChanged(): is a script marker selected?
The
selectionChanged()
marker appears in Design view if there is a JavaScript routine in the body section of a document and if Scripts is
selected on the Invisible Elements section of the Preferences dialog box. The following figure shows a script marker
icon:
attribute to specify the position (
) of the floating panels. The
visible
updateScript().
function determines whether a script marker has been selected in Design view. A script
), size (
absolute
width:422px
panel uses the
blanklayer
scriptlayer
tag also specifies that when an
textarea
function is called to write the
updateScript()
DREAMWEAVER CS3
Extending Dreamweaver
and
),
height:181px
attribute
center
panel creates a form
onBlur
selection-
221

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents