Writing The Javascript Code - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

<br>
<br>
<br>
<br>
(no script selected)
</center>
</div>
<div id="scriptlayer" style="position:absolute; width:422px; ¬
height:181px; z-index:1; left: 8px; top: 11px; ¬
visibility: visible">
<form name="theForm">
<textarea name="scriptCode" cols="80" rows="20" wrap="VIRTUAL" ¬
onBlur="updateScript()"></textarea>
</form>
</div>
</body>
</html>
Both
tags use the
div
and height:181px
panel uses the
blanklayer
the center of the panel. The
the selected JavaScript code. The
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,
selectionChanged(): is a Script marker selected?
The
selectionChanged()
view. A Script marker appears in Design view if there is a JavaScript routine in the
a document and if Scripts is checked on the Invisible Elements section of the Preferences dialog
box. The following figure shows a Script marker icon:
attribute to specify the position (
style
), and default
visibility
attribute and a series of break (
center
scriptlayer
textarea
selectionchanged()
function determines if a Script marker has been selected in Design
Script marker
absolute
setting (
) of the floating panels. The
visible
panel creates a form with a single
tag also specifies that when an
updateScript()
, and one user-defined function,
Script Editor: a floating panel extension
), size (
width: 422px
) tags to position the text in
br
to display
textarea
event occurs,
onBlur
function is called to write the
updateScript().
section of
BODY
231

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents