Skip to content

Instantly share code, notes, and snippets.

@Brendonwbrown
Created August 19, 2013 19:48
Show Gist options
  • Select an option

  • Save Brendonwbrown/6273235 to your computer and use it in GitHub Desktop.

Select an option

Save Brendonwbrown/6273235 to your computer and use it in GitHub Desktop.
A custom setup for shadowbox.js
<script type="text/javascript">
Shadowbox.init({
skipSetup: true
});
window.onload = function () {
Shadowbox.setup("a.shadowboxclass", {});
};
$(document).ready(function(){
$('a.shadowboxclass').live('click',function(e){
Shadowbox.open(this);
e.preventDefault();
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment