Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 1.10 KB  |  hits: 20  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to fadeIn .html()
  2. $('.overview li a').click(function(){
  3.         $('#large-img').html("<img src=" + $(this)
  4.                            .attr('href') + "/>" + "<br /><div>" + $(">.desc",this)
  5.                            .html()); //HOW TO FADEIN this
  6.         return false;
  7.         });
  8.        
  9. $('.overview li a').click(function(){
  10.     var $newstuff=
  11.         $("<img src="
  12.         + $(this).attr('href')
  13.         + ">"
  14.         + "<br><div>"
  15.         + $(">.desc", this).html()
  16.         + '</div>').hide();
  17.  
  18.     $('#large-img').append($newstuff.fadeIn('slow'));
  19.     return false;
  20. });
  21.        
  22. $('.overview li a').click(function(){  
  23.     $('<img>').attr('src', $(this).attr('href'))
  24.         .add('<br>')
  25.         .add($('<div>').html($(">.desc", this).html()))
  26.         .hide()
  27.         .appendTo($('#large-img'))
  28.         .fadeIn('slow');
  29.     return false;
  30. });
  31.        
  32. $('.overview li a').click(function(){
  33.     var a = this;
  34.     var img = $("<img src='" + $(this).attr('href') + "'/>" +  "<br /><div>");
  35.     $('#large-img').hide('fast', function(){
  36.         $(this).html(img + $(">.desc", a)).show('fast');
  37.     });
  38.     return false;
  39. });