Making an image draggable does some pretty wacky things when the image is larger than the container... Does anyone know a way around this?
Here's my code...
<script type='text/javascript' src="scripts/jquery-1.4.2.js"></script>
<script type="text/javascript" src="scripts/jquery-ui.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("img").draggable({ containment: "div", scroll: false });
});
</script>
<style type="text/css">
div {
width:500px;
height:423px;
position:relative;
overflow:hidden;
}
</style>
and...
<div>
<img src="images/map.jpg" width="1000" height="845" alt="Map" />
</div>