Using the Drag Layer Behavior

Layers can be combined with behaviors, which were covered in Lesson 8, to enable your visitors to interact with your page. The Drag Layer behavior makes it possible for the visitor to grab a layer in the browser window and move it to a different spot on the page. This is a great way to create interactive games or teaching tools with elements that can be moved by the user.

1.
Place the insertion point in the text that is in the textlayer layer. Click the <table> tag in the tag selector at the bottom of the Document window. Press the right arrow key once to move the insertion point after the table and insert the teaching.jpg image—type teaching as the alternative text for the image. The teaching.jpg image that you ...

Get macromedia Dreamweaver 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.