Show droptarget_test.html syntax highlighted
<HTML>
<HEAD>
<TITLE>DND Test</TITLE>
<SCRIPT TYPE="text/javascript" SRC="droptarget.js"> </SCRIPT>
</HEAD>
<BODY>
<TABLE>
<TR>
<TD>
<DIV ID="Trash" STYLE="position: relative;">
Trash Bin (TARGET)
</DIV>
</TD>
<TD>
<TABLE>
<TR>
<TD>
<DIV ID="m1230" STYLE="position: relative; ">
Message m1230
</DIV>
</TD>
</TR>
<TR>
<TD>
<DIV ID="m1231" STYLE="position: relative; ">
Message m1231
</DIV>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<SCRIPT TYPE="text/javascript">
<!--
function pos(x, y)
{
this.x = x;
this.y = y;
}
SET_DHTML("m1230", "Trash", "m1231");
positions = new Array(0);
positions["m1230"] = new pos(dd.elements["m1230"].x, dd.elements["m1230"].y);
positions["m1231"] = new pos(dd.elements["m1231"].x, dd.elements["m1231"].y);
//-->
</SCRIPT>
</BODY>
</HTML>
See more files for this project here