Chapter 15. Dragging Layers

IN THIS CHAPTER

  • Background

  • Events and Objects

  • Dragging Code

  • The Whole Thing

Allowing the user to drag layers and images across the browser window is one of the more involved ways to allow interactivity on your Web page. In this chapter, we'll look at how to allow users to drag layers from one place to another, while not dragging other layers, and have the page respond when the layers are dragged to a certain area.

Get Advanced JavaScript™: Insights and Innovative Techniques 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.