开发者

flir on caption of Lightbox

开发者 https://www.devze.com 2022-12-09 03:27 出处:网络
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

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

精彩评论

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