Re: fade in graphic

by "Comharsa" <comharsa(at)clara.net>

 Date:  Wed, 17 Nov 1999 14:50:57 -0000
 To:  "Pam Mather" <pammather(at)earthlink.net>,
<hwg-basics(at)hwg.org>
 References:  edu
  todo: View Thread, Original
> At 13:57 16/11/99 -0600, Pam Mather wrote:
> >is there some sort of java type thing that will fade in a graphic after
the
> >rest of the page has loaded?
>
> This could be tricky!

<snip>

> Alternatively, you could use an image-swapping function triggered by the
> onLoad event.  This would guarantee the effect occured after the page was
> fully downloaded - unfortunately it wouldn't fade in if Javascript was
> disabled.
>
>
> Chris Higgs <c.higgs(at)landfood.unimelb.edu.au>

One way of doing it would be to use the function fadeElement() in your
javascript, where the first image is a transparent .gif (a single pixel .gif
expanded to the required space would be best in terms of download) and the
second is the required picture. This could be set to operate onLoad as Chris
suggested.

The problems are that it is IE4+ only, and on Windows OS (so not even on IE4
for Mac or unix). And as Chris also said, if js is not disabled.

Brian

comharsa(at)clara.net

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA