Skip to content

Instantly share code, notes, and snippets.

@joshrobb
Created October 18, 2011 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshrobb/1295152 to your computer and use it in GitHub Desktop.
Save joshrobb/1295152 to your computer and use it in GitHub Desktop.
$('area').hover( function () {
var $target = $(this).attr('alt') + '-over';
$('#events-map').addClass($target);
},
function () {
$("#events-map").removeClass().addClass($target);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment