dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: OnLoad

  1. #1
    Join Date
    Jan 2005
    Posts
    2

    OnLoad

    hi, i'm kinda new...

    here's my question: can i use two OnLoad's?


    exaple:
    <BODY onLoad="runSlideShow()">
    <BODY onLoad="timerONE=window.setTimeout('scrollit_r2l(100)',500);">

    I can't get it to work... only the 1st one


    thx in advance!

  2. #2
    Join Date
    Nov 2003
    Location
    Aachen, Germany
    Posts
    4,090
    Hi!

    Simply call the functions in one onload event handler and separate them with semi-colons:

    <BODY onLoad="runSlideShow();timerONE=window.setTimeout('scrollit_r2l(100)',500);">

    Alternatively, you could create another function which you call onload in the body tag and in that function, you call everything you need to be called.

    If these functions you need are interdependant, you will have to call them in the correct order.

    Cheers - Pit

  3. #3
    Join Date
    Jan 2005
    Posts
    2

    Talking



    it worked!

    thx a lot man!

  4. #4
    Join Date
    Nov 2003
    Location
    Aachen, Germany
    Posts
    4,090
    Nice! You're welcome.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles