I am currently learning JavaScript and DHTML and I am trying to figure out how to create drag and drop elements. The code I have written is as follows:
<html>
<head>
<title>Drag and Drop test</title>
<script language="JavaScript">
var object=null;
var dX=0;
var dY=0;
the pickIt(e) function, gets the object location on the screen, however this is where everything stops! With the dragIt () function I was hoping to move the object which is has been selected in pickIt, and which now should have a zIndex of 100, and then drop it at a new location with the dropIt function.
Bookmarks