Follow @magnawebstudio on Twitter Follow @magnawebstudio on Twitter
Follow /magnawebstudio on LinkedIn Follow /magnawebstudio on LinkedIn
awarded site
magna web studio
Contact us! Contact us!
WB-Developers' Corner
WB-Developers' Corner
       [rz] Drag Layers

This extension allows you to manage and drag floating layers synchronously in your page.

Some features:

Custom images, colors, fonts and sizes for the caption bar.
Keyboard handled layers: tab / focus, arrow keys / move.
You can have as many layers you want in the same page, all of them will automatically be stacked!
Tested in Chrome, FireFox, Opera, Safari, Maxthon, Lunascape, IEquirks, IE6, IE7, IE8 and IE9, iPhone and Android tablets;

...and more!

HTML 4.01 Transitional
W3C compliant


* Just a brief about some of the changes that were made lately...

* New in version 1.1

- Optional context boundaries.
- Improved backward focus control compatibility.
- Moved the core to an external library file for faster navigation between different pages.
- Minor code tweaks.

* New in version

- Added RWD support.
- Improved bidirectional support.
- Bar orientation for caption and close button location.
- Deprecated and removed the [rz] Drag Layers (lib) extension; it is not needed anymore and now all is centralized in
  just one instance.

* New in version

- The core was optimized and improved for (even) better performance.
- Push colors added to the close button.
- Solved an IE10+ background issue.
- Added "external accessibility", see the available functions at the bottom of this document.

How to use?

1. Design your layer (or all the layers you need) as you usually do.
2. Add an instance of [rz] Drag Layers in each layer you want to convert it to float and draggable on
    top of its objects.
3. Optionally, you can open the extension properties dialog box and setup your desired customization.

Extended functions for layers:

document.getElementById('MyLayer').open();        to open/show a stacked layer.
document.getElementById('MyLayer').close();      to close/hide a stacked layer.
document.getElementById('MyLayer').restore();  open/show the layer on top of
                                              the stack and in its original position.
document.getElementById('MyLayer').moveTop();  move the layer on top of the
                                              stacked layers.

just replace 'MyLayer' with the actual object id.

w3c compliant
© 2012-20 by MAGNA web studio • all rights reserved

new shop with