开发者

flir on caption of Lightbox

I'm wondering how you could add flir on the captions of a lightbox. I already managed to display the flir on the first picture you select but when you go to the next picture without closing lightbox the caption is regular text.开发者_如何学C

this is how my footer looks

<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>

and

in the lightbox js file in the _resize_container_image_box function

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


this is the answer:

$('#lightbox-image-details-caption').removeClass('flir-replaced'); $('#lightbox-image-details-caption').removeAttr('flirReplaced'); then FLIR.replace(['span'])

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜