Just a bonus feature (source from fancybox site): addon title to fancybox if 'alt' of images is not empty (maybe same as title).
Open tmpl -> default.php file, find this line:
Code: |
jQuery(window).resize(function() {
|
And insert before this code:
Code: |
jQuery(".fancybox").fancybox({
beforeShow : function() {
var alt = this.element.find('img').attr('alt');
this.inner.find('img').attr('alt', alt);
this.title = alt;
},
afterShow: function() {
jQuery(".fancybox-title").wrapInner('<div />').show();
jQuery(".fancybox-wrap").hover(function() {
jQuery(".fancybox-title").show();
}, function() {
jQuery(".fancybox-title").hide();
});
},
helpers : {
title: {
type: 'over'
}
}
});
|