Skip to content

Instantly share code, notes, and snippets.

@yummytech
Created February 21, 2013 03:59
Show Gist options
  • Save yummytech/5001906 to your computer and use it in GitHub Desktop.
Save yummytech/5001906 to your computer and use it in GitHub Desktop.
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.6.1");
google.load("jqueryui", "1.8.6");
</script>
<script>
$(
$('#draggablehand').draggable({
hoverClass: "dropHover"
}))
$(
$('ul#icongroup>li').droppable({
over: function(event, ui){
var imgsrc = ($("img", this).attr('src'));
$('#draggablehand').attr('src', imgsrc.replace('icon', 'hand'));
$('.phonesketch').attr('src', imgsrc.replace('icon', 'sketch'));
}
})
);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment