Friday, 15 January 2010

javascript - FadeIn and FadeOut effect weird -



javascript - FadeIn and FadeOut effect weird -

i using jquery , want happen is: div fades out using fadeout(). loads content url using load(). 1 time content loaded fades in using fadein(). not work,it flashes loads out loads in. think problem fading happening before load complete.i saw else had same problem when applied solution there no change.here code solution found (not working of course).

jquery('.stil_link_img a').click(function() { var x = jquery(this).attr('href') + ' #continut_eco'; jquery('#continutul_paginii').fadeout("slow").load(x,function() { jquery(this).fadein("slow") }); homecoming false });

you try:

jquery('.stil_link_img a').click(function(){ var x = jquery(this).attr('href') + ' #continut_eco ', $this = jquery('#continutul_paginii'); $this.fadeout("slow", function() { $this.load(x, function() { $this.fadein("slow") }); }); });

javascript jquery

No comments:

Post a Comment