
Untitled
By: a guest on
Jun 13th, 2012 | syntax:
None | size: 1.10 KB | hits: 20 | expires: Never
how to fadeIn .html()
$('.overview li a').click(function(){
$('#large-img').html("<img src=" + $(this)
.attr('href') + "/>" + "<br /><div>" + $(">.desc",this)
.html()); //HOW TO FADEIN this
return false;
});
$('.overview li a').click(function(){
var $newstuff=
$("<img src="
+ $(this).attr('href')
+ ">"
+ "<br><div>"
+ $(">.desc", this).html()
+ '</div>').hide();
$('#large-img').append($newstuff.fadeIn('slow'));
return false;
});
$('.overview li a').click(function(){
$('<img>').attr('src', $(this).attr('href'))
.add('<br>')
.add($('<div>').html($(">.desc", this).html()))
.hide()
.appendTo($('#large-img'))
.fadeIn('slow');
return false;
});
$('.overview li a').click(function(){
var a = this;
var img = $("<img src='" + $(this).attr('href') + "'/>" + "<br /><div>");
$('#large-img').hide('fast', function(){
$(this).html(img + $(">.desc", a)).show('fast');
});
return false;
});