simple Body Onload question

R

Raphael Gluck

Hi Everyone
Just a simple question
If i have more than one Javascript in the head tag, and both have a body
Onload how do i write the opening body tag?
do i enter two Onloads? This didnt work for me.
<body onLoad=" MM_preloadImages(etc...)" onload="runSlideShow()">

Can i have one onload call both?

Please help me

Raphael
 
R

Raphael Gluck

is this the solution

<body onLoad=" MM_preloadImages('etc...'); runSlideShow()">

Raphael
 
N

nice.guy.nige

While the city slept said:
is this the solution

<body onLoad=" MM_preloadImages('etc...'); runSlideShow()">

That's one. You can also make a new function that runs all your onload
functions and call that from onload. This is more useful if you have quite a
few functions to start (less messy). For example...

In your script block in the head

function start()
{
MM_preloadimages('etc...');
runSlideShow();
}

and in your body tag

<body onload="start()">

.... Hope that helps,
Nige

--
Nigel Moss.

Email address is not valid. (e-mail address removed). Take the dog out!
http://www.nigenet.org.uk | Boycott E$$O!! http://www.stopesso.com
In the land of the blind, the one-eyed man is very, very busy!
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top