$(function() { $('.fs').fullsize(); /*$('img.image1').data('ad-desc', 'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.
And it contains How To Meet Ladies... What? That aint what HTML stands for? Man...'); $('img.image1').data('ad-title', 'Title through $.data'); $('img.image4').data('ad-desc', 'This image is wider than the wrapper, so it has been scaled down'); $('img.image5').data('ad-desc', 'This image is higher than the wrapper, so it has been scaled down');*/ var galleries = $('.ad-gallery').adGallery({ loader_image: 'loader.gif', enable_keyboard_move: true, display_next_and_prev: false, effect: 'fade', callbacks: { // Executes right after the internal init, can be used to choose which images // you want to preload init: function() { if (this.current_image != false){ current_file = this.current_image.children().attr('src'); var reg=new RegExp("-vign-([0-9]+)_([0-9]+).", "g"); current_src = current_file.replace(reg, '-visuel.'); this.current_image.children().attr('longdesc', current_src); this.current_image.children().fullsize(); } }, // This gets fired right after the new_image is fully visible afterImageVisible: function() { if (this.current_image != false){ current_file = this.current_image.children().attr('src'); var reg=new RegExp("-vign-([0-9]+)_([0-9]+).", "g"); current_src = current_file.replace(reg, '-visuel.'); this.current_image.children().attr('longdesc', current_src); this.current_image.children().fullsize(); } }, } }); });