JavaScript

  • Thread starter Thread starter Allison
  • Start date Start date
A

Allison

Hello -

I've seen the recommedation for A List Apart horizontal menus on this forum.
I just changed my DHTML menus (made with FrontPage Behaviors) to the List
Apart menu because the CSS is cleaner. To get it to work in IE I have to
use a JavaScript, but it doesn't start to work until after all the images
are loaded. Is there any way to get the JavaScript to be called as soon as
the page loads or at least before the images load?

Thanks,
Allison
 
There is :-)
Try this HTML:
<body onLoad='[functions that you want]' />
If you need it on page leaving, put this:
<body unLoad='[functions that you want]' />
 
That should be: <body onunload='[functions that you want]' />
And when it is xhtml like you wrote it, you can't use "camelCase" in
javascript.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

There is :-)
Try this HTML:
<body onLoad='[functions that you want]' />
If you need it on page leaving, put this:
<body unLoad='[functions that you want]' />

Allison said:
Hello -

I've seen the recommedation for A List Apart horizontal menus on this
forum. I just changed my DHTML menus (made with FrontPage Behaviors) to
the List Apart menu because the CSS is cleaner. To get it to work in IE I
have to use a JavaScript, but it doesn't start to work until after all the
images are loaded. Is there any way to get the JavaScript to be called as
soon as the page loads or at least before the images load?

Thanks,
Allison
 
Back
Top