Here's a demo.
Even more impressive is how many lines of JavaScript it took to make this demo: six. Eight if you count jQuery's $(document).ready:
$(document).ready(function($){
$("[id^=win]").draggable({
containment: 'document',
stack: {group: $("[id^=win]"), min: 1},
handle: $(".title"),
opacity: 0.8
});
});
Next step in this project will be to logically break things up into separate classes using Prototype's classes and inheritance. For example, a Window class will represent a window in the browser, a TaskManager class will represent a set of Windows, etc. To be continued ...


Did you find this post helpful, or at least, interesting?