$('#page_name').load(url + '开发者_开发百科 #page_name') // url - some container. ex - #container
$('#page_name').delay(300).fadeIn(1000)
and nothing :(
Trying live(), but nothing comes out
Use the callback function for load.
$('#page_name').load(url + ' #page_name', function() {
$(this).fadeIn(1000);
});
I don't think you can use .delay in this context.
The .delay() method is best for delaying between queued jQuery effects.
Fade the content in from within $.load
's success callback:
$('#page_name').load(url + ' #page_name', function() {
$(this).fadeIn(1000)
});
精彩评论