Fire an event uppon img load

Fire an event uppon img load

I tried sticking onload html attribute on the img elements, but that wasn't compatible with the older versions of opera and was invalidated by the w3c validator.

This is the second route I've taken:

$(document).ready(function() {
            $(".dlPicturesImg").load(function() {
                fadeTmb(this);
            });
        });


...but it doesn't work as intended, I would like the fadeTmb function to be called as soon as an image loads.
Things are possibly being complicated by the fact that the thumbnails to be faded are dynamically output by the asp.net code.

Here is a live example(though it changes pretty often):
http://steftest.svaljek.com/gallery.asp ... ubpage=6x6