Hi! Another question.

http://reghellin.unbit.it/test2/

ONLY in firefox, the fadein fx on the bg that you can see in safari
and ie, isn't visible.
In fact, it happens, but it happens too early, when the image is still
being showed gradually from top to bottom. So it seems that the onload
event of Assets doesn't take in account this fact.

BUT in a site like this:

http://ines-papert.de/en/home

they were able to do it even in firefox, apparently simply with this
code:

        $(function () {
            var img = new Image();
            $(img).load(function () {
                $(this).css('display', 'none');
                $(this).hide();
                $('#loader').append(this);
                $(this).fadeIn();
            }).error(function () {
            }).attr('src', ' http://ines-papert.de/images/116.jpg');
        });

(jquery stuff)

I guess that THAT load event, fires when the image is completely
(virtually) visible.

How can I do this with mootools?




Reply via email to