Skip to content

Instantly share code, notes, and snippets.

@wanderingmatt
Created April 29, 2012 02:53
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 wanderingmatt/2526549 to your computer and use it in GitHub Desktop.
Save wanderingmatt/2526549 to your computer and use it in GitHub Desktop.
$(".video").fancybox({
aspectRatio: true,
beforeLoad: function() {
this.title = $(this.element).children('aside').html();
this.tpl.prev = "<a title='Previous' class='fancybox-nav fancybox-prev'>The Previous Title</a>";
this.tpl.next = "<a title='Next' class='fancybox-nav fancybox-next'>The Next Title</a>";
console.log($(this.element).parent().next().children());
},
height: 540,
loop: false,
padding: 0,
width: 960,
helpers: {
title: {
type: 'outside'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment