#javascript-code-21-window.htm / htm
<html> <head> <title>DOM-Drag – Draggable Window Demo</title> <script src="domdrag.js" type="text/javascript"></script> <script type="text/javascript"> window.onload = function(){ // Initalize the DOM-Drag function, making the element with // an ID of ‘window’ draggable Drag.init( document.getElementById(“window”) ); }; </script> <style> #window { border: 1px solid #DDD; border-top: 15px solid #DDD; width: 250px; height: 250px; } </style> </head> <body> <h1>Draggable Window Demo</h1> <div id=”window”>I am a draggable window, feel free to move me around!</div> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.