simple Body Onload question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Raphael Gluck

    simple Body Onload question

    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_preloadImage s(etc...)" onload="runSlid eShow()">

    Can i have one onload call both?

    Please help me

    Raphael


  • Raphael Gluck

    #2
    Re: simple Body Onload question

    is this the solution

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

    Raphael


    Comment

    • kaeli

      #3
      Re: simple Body Onload question

      In article <bnb2kd$ijf$1@s parta.btinterne t.com>, Idont@haveone.h onest
      enlightened us with...[color=blue]
      > is this the solution
      >
      > <body onLoad=" MM_preloadImage s('etc...'); runSlideShow()" >
      >[/color]

      Yup. :)


      -------------------------------------------------
      ~kaeli~
      Jesus saves, Allah protects, and Cthulhu
      thinks you'd make a nice sandwich.


      -------------------------------------------------

      Comment

      • nice.guy.nige

        #4
        Re: simple Body Onload question

        While the city slept, Raphael Gluck <Idont@haveone. honest> feverishly typed:
        [color=blue]
        > is this the solution
        >
        > <body onLoad=" MM_preloadImage s('etc...'); runSlideShow()" >[/color]

        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_preloadimage s('etc...');
        runSlideShow();
        }

        and in your body tag

        <body onload="start() ">

        .... Hope that helps,
        Nige

        --
        Nigel Moss.

        Email address is not valid. nigel@nigenetDO G.org.uk. 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!


        Comment

        Working...