jquery - Applying fancybox on future elements? -


is possible apply fancybox(or lightbox alternative) on elements loaded hquery's load() ? if so, how?

assuming you're loaded elements classed "loadedelement"

$(".loadedelement").live("load", function() {     // implement lightbox code }); 

or if want implement lightbox before images have finished loading, change "load" "ready"


Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

Delphi Wmi Query on a Remote Machine -