[Web4lib] Valid substitute for body onLoad()
Larry Scritchfield
lscritch at cochisecold.lib.az.us
Mon Oct 30 16:09:14 EST 2006
Here's a Javascript-free alternative.
http://www.grc.com/menu2/invitro.htm
But note, the CSS hacks don't validate (e.g. the backslashes in the CSS
are intentional).
--
Larry Scritchfield
Systems Librarian
100 Clawson Ave
PO Drawer AK
Bisbee, AZ 85603
520-432-8930
520-432-7339 FAX
lscritch at cochisecold.lib.az.us
Robert Sullivan wrote:
> I have found an almost-pure CSS method method for drop down menus
> which works across browsers and validates, except that it uses a small
> piece of Javascript which is called by <body onLoad>.
>
> That won't pass the validator and since I don't speak Javascript I am
> looking for an alternative means of doing that. The site I saw this
> on:
>
> <http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm>
>
> says you may replace that with a window.onload in the script file, but
> before I get in any deeper I am asking people who actually know what
> they're doing. :-)
>
More information about the Web4lib
mailing list