jquery

레이어 드래그

aneyh.c 2012. 2. 17. 17:28


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title> new document </title>
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script src="jquery.ui.core.js"></script>
<script src="jquery.ui.widget.js"></script>
<script src="jquery.ui.mouse.js"></script>
<script src="jquery.ui.draggable.js"></script>
<style>
#draggable { width: 150px; height: 150px; padding: 0.5em; border:1px solid red; }
</style>
<script>
$(function() {
$( "#draggable" ).draggable();
});
</script>

 </head>

 <body>
  <div class="demo">
 
<div id="draggable" >
<p>Drag me around</p>
</div>
 
</div><!-- End demo -->

 </body>
</html>