2014.10.28 15:31

8강. jquery.easydrag.js 이용해 이미지 드래그하기

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>멀티미디어공학</title>
<script src='http://code.jquery.com/jquery-1.10.0.min.js'></script>
<script src='/jquery.easydrag.js'></script>
<style>
 #ball { position:absolute; top:0px; left:0px; z-index:1000; }
</style>

</head>
<body>
<div id="ball"><img src="/ball.png"></div>

<script>
$(function() {
 $('#ball').easydrag();
});
</script>
</body>
</html>

mv.php

 

 

jquery.easydrag.js

 

        

Trackback 0 Comment 0