Skip to content

Instantly share code, notes, and snippets.

@harikt
Created November 16, 2012 02:29
Show Gist options
  • Select an option

  • Save harikt/4083404 to your computer and use it in GitHub Desktop.

Select an option

Save harikt/4083404 to your computer and use it in GitHub Desktop.
Trigger an event on leaving the mouse from the lightbox.
<html>
<head>
<script src="http://jquery.phpbasic.com/jquery-1.3.2.min.js"></script>
<script src="http://jquery.phpbasic.com/divbox.js"></script>
<link rel="stylesheet" href="http://jquery.phpbasic.com/css/divbox.css" />
</head>
<body>
<a href="hello.html" class="ajax">Ajax</a>​
<script>
$('.ajax').divbox({type: 'ajax',caption: false});
$('#divbox_frame').mouseleave(function () {
// something needs to be done :)
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment