Hi
I've got the following code:
$(document).ready(function(){ $("a#cakeImages").live("click",function() fancybox({
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
}))
});
and I've got the correct images :
<a id="cakeImages" href="cakes/2/1.jpg" >
<img alt="cakeImages" class="align-left no-border" src="cakes/2/1.jpg" /></a>
But it's not working at all. I use .live, because my actual images change due to the ajax script on the page.
But when I only change it to :
$(document).ready(function() {$("a#cakeImages").fancybox({
'titleShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
})
});
Works only the firs time. Has anyone has a clue, what's going on ? :D