开发者

How to alter prettyPhoto description HTML?

开发者 https://www.devze.com 2023-02-26 15:33 出处:网络
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)

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

精彩评论

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