JavaScript

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
 
E

e

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]' />
 
J

Jens Peter Karlsen [FP-MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top