2009-10-24 57 views
0

我想知道如何在燈箱的標題上添加flir。我已經設法在您選擇的第一張照片上顯示花色,但是當您在不關閉lightbox的情況下轉到下一張照片時,標題是普通文字。flir關於燈箱的標題

這是我的頁腳的外觀

<script src="/js/flir.js" type="text/javascript"></script> 
<script type="text/javascript" src="/js/jquery.lightbox-0.5.js"></script> 
<script type="text/javascript"> 
FLIR.init(); 
.... 
</script> 

在燈箱js文件在_resize_container_image_box功能

$('#lightbox-container-image-box').animate({ width: intWidth, height: intHeight },settings.containerResizeSpeed,function() { _show_image();FLIR.auto([ 'span' ]); 

回答

0

這就是答案:

$(」 #收藏夾-圖像細節字幕 ')removeClass(' FLIR置換'); $('#lightbox-image-details-caption')。removeAttr('flirReplaced'); 然後FLIR.replace(['span'])