<html lang="en">
<head>
<title></title>
<link type="text/css" href="js/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript" src="js/ui/ui.core.js"></script>
<script type="text/javascript" src="js/ui/ui.draggable.js"></script>
<link type="text/css" href="js/demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
var dragOpts = {
start: setShadow,
stop: unsetShadow
};
function setShadow() {
$("#drag").css({ background: 'red', width:"120px", height:"121px" });
}
function unsetShadow() {
$("#drag").css({ background: 'yellow', width:"114px", height:"114px" });
}
$("#drag").draggable(dragOpts);
});
</script>
</head>
<body>
<div id="drag">Move me</div>
</body>
</html>