Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Jun 2003
    Location
    Australia
    Posts
    735
    Member #
    1935
    how do i run 2 functions on <body onLoad()> ??
    i have to call preLoad() and performCheck() when the page loads...

    thanks

  2.  

  3. #2
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    Liked
    1 times
    [minicode]<body onload="preLoad(), performcheck()">[/minicode]
    JR

  4. #3
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    think you'll need a semi-colon instead of a comma between two function calls.
    There and Back Again :Ogre:

  5. #4
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    yeah...
    Code:
    <body onload="preLoad(); performcheck();">
    element events are like mini-scripts... you could theoretically put an entire script in there, like so:
    Code:
    <body bgcolor="#000000" id="bod" onload="
        for (var i = 0; i < 10; i++) {
            window.setTimeout('document.getElementById(\'bod\').style.backgroundColor = \'#' + 111111 * i + '\'', i * 100);
        }
        ">
    </body>
    Hehe... I just wrote that script... you guys should try it out. It's neat :-P

  6. #5
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    doesn't work
    There and Back Again :Ogre:

  7. #6
    Senior Member
    Join Date
    Jun 2003
    Location
    Australia
    Posts
    735
    Member #
    1935
    ok, thanks for that guys


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:09 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com