Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > simple Body Onload question

Reply
Thread Tools

simple Body Onload question

 
 
Raphael Gluck
Guest
Posts: n/a
 
      10-24-2003
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


 
Reply With Quote
 
 
 
 
Raphael Gluck
Guest
Posts: n/a
 
      10-24-2003
is this the solution

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

Raphael


 
Reply With Quote
 
 
 
 
kaeli
Guest
Posts: n/a
 
      10-24-2003
In article <bnb2kd$ijf$(E-Mail Removed)>, http://www.velocityreviews.com/forums/(E-Mail Removed)
enlightened us with...
> is this the solution
>
> <body onLoad=" MM_preloadImages('etc...'); runSlideShow()">
>


Yup.


-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
 
Reply With Quote
 
nice.guy.nige
Guest
Posts: n/a
 
      10-26-2003
While the city slept, Raphael Gluck <(E-Mail Removed)> feverishly typed:

> 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 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!


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
onload -->* no onload marco Javascript 7 06-24-2006 08:39 PM
Adding a onload event to the body section. UJ ASP .Net 4 07-19-2005 09:15 PM
Why doesn't frameset onload event get called when each of the frames has an onload? adnanx82@gmail.com Javascript 5 05-15-2005 01:58 PM
base.OnLoad called, OnLoad not executed Fabio R. ASP .Net 0 03-25-2005 01:21 PM
window.onload and body.onload differences David Otton Javascript 2 11-04-2004 04:34 PM



Advertisments