Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

XDRAG JAVASCRIPT OBJECT

This static object simplifies the dragging process. Simplify put before it would take many lines of code to make an html element dragable now with this object it only takes 1. This object also performs multiple drag!

Try and drag a layer (on the right) and notice that it is placed above all other layers and will follow the mouse until the mouse up event is called. Press the control key and click a layer, while holding the control key and select more layers. Now drag the current layer and notice that all other layers are dragged with it, that's right, that's how a multiple drag is performed.

Try and drag a layer out of the screen and notice that the layer cannot be dragged outside the drag area.

While dragging a border is placed around layers.

The object is fully customizable, the following attributes can be set:

  1. Events to capture: onDragStart,onDragEnd ,onmousedown,onmouseup ,onmousemove
  2. Drag Area: Use xDrag.setDragArea(Top,Right,Bottom,Left).
  3. Width and height of button (Image is streched to given dimensions)

xDrag is static and should not be instantized with new but instead used by name i.e XDrag.

Code!


xLayer in Action| Fixed Position Javascript Object| Toolbar Object| Menu Object| Restricted Area Object| Animated Button Object| Drag Object| Internal Frame Object| Number Mask Object| Sound Object

You may use this javascript for free!
Home