Skip to Main Content
Adobe® Dreamweaver® CS4 Bible
book

Adobe® Dreamweaver® CS4 Bible

by Joseph Lowery
March 2009
Beginner to intermediate content levelBeginner to intermediate
1321 pages
46h 24m
English
Wiley
Content preview from Adobe® Dreamweaver® CS4 Bible
463
Working with Divs and AP Elements
11
11. To keep the AP element in its current depth and not bring it to the front, deselect the
checkbox for While Dragging: Bring Element To The Front. To change the stacking order
of the AP element when it is released after dragging, select either Leave On Top or Restore
Z-index from the drop-down list.
12. To execute a JavaScript command when the AP element is dropped on the target, enter the
code in the Call JavaScript text box. If you want the script to execute every time the AP
element is dropped, enter the code in the When Dropped: Call JavaScript text box. If the
code should execute only when the AP element is dropped on the target, make sure there’s
a check in the Only If Snapped checkbox.
13. To change the event that triggers the action (the default is onLoad), select an event from
the drop-down list in the Events column.
Set Text of Container
You’ve seen how AP elements can dynamically move, and change their visibility and their depth—
but did you know that you can also change an AP element’s content dynamically? With Dream-
weaver, you can do it easily. A standard behavior, Set Text of Container, enables you to swap the
entire contents of one AP element for whatever you’d like. You’re not limited to exchanging just text,
either. Anything you can put into HTML, you can swap—which is pretty much everything!
Targeted JavaScript C
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Adobe® Dreamweaver® CS5 Bible

Adobe® Dreamweaver® CS5 Bible

Joseph W. Lowery
Dreamweaver® CS3 Bible

Dreamweaver® CS3 Bible

Joseph W. Lowery

Publisher Resources

ISBN: 9780470382523Purchase book