Created
April 29, 2012 02:53
-
-
Save wanderingmatt/2526549 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".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