Custom drag and drop JavaScript script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: index.html?whichScript=drag-drop-custom
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: JavaScript
  • Price:Freeware
  • Company: dhtmlgoodies.com (View more)

Custom drag and drop script description:




Publisher review:
Custom drag and drop script makes it possible for you to create your own DHTML drag and drop applications. The purpose of this script is to make it possible for you to create your own DHTML drag'n drop applications.

Important methods

addSource

Add a dragable element. Arguments to this methods are - id of element and
- true|false if the element should slide back into it's original position after drop.
- true or false if you want to allow dragging along the x-axis. (Optional, default = true)
- true or false if you want to allow dragging along the y-axis. (Optional, default = true)
- id(String) of element. This argument is optional. If a value is sent, you will not be able to drag the element outside the boundaries of the element with this id.
- Name of function(string). Name of function to call when drag is initiated. Example: "onDragStartFunction"(Only the name). The function with this name will be called with these arguments: 1) id of the cloned version of the element, and 2) the id of the original element. This script creates a "copy" of the dragged element. The "copy" is the element you see when drag is in process. Look at the code in demo2 for examples on how to use this argument.
addTarget

Assign action to an element when a dragable item is dropped on it. - id of element and
- name of function(example: "dropItems") which would be called when an item is dropped on the drop zone. This function would be called with the following arguments: - id of dragged element
- id of the element the item was dropped on.
- mouse x coordinate when item was dropped
- mouse y coordinate when item was dropped

init

Initializes the script. This method should be called after addSource and addTarget.

setSlide

Arguments to this function is boolean true or false, false if you want to cancel the sliding animations and true if you want to enable it.
Custom drag and drop is a JavaScript script for Internet, Browsers and Tools scripts design by dhtmlgoodies.com. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Custom drag and drop script makes it possible for you to create your own DHTML drag and drop applications.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5