开发者

How to alter prettyPhoto description HTML?

hello i want to modify the "description html" of t开发者_如何学编程he prettyPhoto i dont think there is a callback available when prettoPhoto lightbox is "shown" (but a callback for close exist)

what do you guys recommend?


Looking at the documentation, there is:

changepicturecallback: function(){}, /* Called everytime an item is shown/changed */

As long as that fires when the first picture is shown, you could create a function to check a globally available variable and do your magic on startup, set the pretty_opened variable (or whatever you want to call it) to true, then use the callback to set it to false on close.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜