Brent wrote:
> On 30 Nov 98, Jack Killpatrick wrote:
>
> > In this section, try removing the 2 lines marked with a * below:
> >
> > * function preLoad() {
>
> [snip]
>
> > * }
> >
> > This will cause the entire routine to be run when the page loads. As is,
> > the function "preLoad" is not called anywhere else on the page
>
> Um... any reason that you don't simply recommend using <body onLoad=>
> to call the image caching script?  That is the usual way to do this... it
> helps assure that Javascript will wait for all the required
> rollover images to
> fully load before attempting to run the script.  This can
> eliminate various
> errors of the 'document.imageX has no properties' variety.
>
> If Suz went that route, she would leave the function definition
> the way it
> was, and call it with the following:
>
> <body onLoad='preLoad()>

Only reason I didn't suggest it is because I didn't know it was an option. I
took a look at my JavaScript reference and found this for onLoad: supported
by "'window' and 'image' in JavaScript 1.1". I couldn't find anything in my
reference that gave me a list of what you could use inside <body>. Do you
have the lowdown?

Thanks,
Jack

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to