Hi folks,

while I hardly get the chance to use jQuery at work (or even update my 
blog to use jQuery), I implemented a small script for a page of a 
friend. I implemented it to work with only one picture, but in FF it 
already works with two of em. You can see it here: 
http://www.erdeanthomas.de/ Just wait some seconds, then the pictures on 
the right should change. You may even spot myself on some of the 
pictures :-)

The interesting code:

var img = $('#images');
var loadThumbs = function() {
    
$('<div>').hide().appendTo('body').load('/wp-content/themes/3c-black-letterhead/bilder.php',
 function() {
      var self = this;
      $(this).find('img').load(function() {
        $('a', img).fadeOut('slow', function() {
          img.empty().append($('a', self)).fadeIn('slow');
          $(self).remove();
          setTimeout(loadThumbs, 8000);
          applyHandlers()
        });
      });
    });
  };

You simply have to love jQuery :-)

-- Jörn

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to