YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Dragged Element on Top

This example builds on the basic drag and drop, keeping the dragged element on top of the others by changing its z-index property during the drag.