[thelist] text problem

Chris Marsh chris at ecleanuk.com
Thu Feb 13 12:08:00 CST 2003


[..]

> > One thing I have done is to set the visible attribute of
> elements to
> > "hidden" by default.  Write a routine that preloads images and set
> > that as the onLoad handler.  Once the images have finished loading,
> > set all of your elements to visible.
>
> If you're going to follow through with this, be sure to set
> the visibility property to hidden /in javascript/, rather
> than in your CSS. Otherwise, users with javascript disabled
> won't see anything (since the onLoad handler won't be called
> to make them visible).

Excellent point, but make sure you do it the right way. The onload event
handler is useless, since the page will already have loaded, and if you
write inline script you will probably generate "object does not exist"
type errors.

Regards

Chris Marsh




More information about the thelist mailing list