Closed blueyed closed 11 years ago
Daniel , that passage of data is best done for each particular case, to avoid malfunctions. in your case, I recommend you try put the popUp to an href:
<div class="imgLiquidFill imgLiquid" style="width:300px; height:200px;">
<a href="#" class="PopUp" title="">
<img alt="Woody" src="Woody.jpg" />
</a>
</div>
Hope this helps, good luck with that!
You can also manually clone attributes, like this:
//Normal call
$(".imgLiquidFill").imgLiquid();
//Clone attribute: tittle from .imgLiquid img' to '.imgLiquid'
$('.imgLiquid img').each(function(){
$(this).closest('.imgLiquid').attr('tittle', $(this).attr('tittle') );
})
Thanks. Manually transferring the title attribute is good enough.
This might also be accomplished using imgLiquid's callback function(s).
If there is a title attribute used/provided with the IMG tag, its "popup" functionality gets lost, because the image itself gets hidden.
The attribute could get copied over to the surrounding DIV.