O'Reilly logo

MooTools 1.3 Cookbook by Jay Larry G. Johnston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dragging window widgets around on a screen

Let us face it, visitors go ga-ga over dragging and transparency. So let us add some transparency to our window widget module and drag it around the screen for effect.

Dragging window widgets around on a screen

Getting ready

Get ready to create some intelligent window widgets! Remember to include both MooTools Core and the MooTools More in the head of our document.

How to do it...

Use a collection of elements to place drag-and-drop code on a group of like items.

<div id="page"> <h1>My Homepage</h1> <h2>Where I can rearrange my window widgets!</h2> <small><em>Window widget locations can be saved only after an account is created.</em></small><br/> <div ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required