SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: extra onloads

Hybrid View

  1. #1
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    extra onloads

    Here's the situation. I use onload on every page to load the same dhtml menu. However, now the client wants a cookie-controlled pop-up to advertise their CD on one page. So how do I do multiple onloads? Or is there something I can use in place of one of the onloads that will pop the window up automatically...no mouseover or mouseouts.

    Thanks.

    Sketch
    Aaron Brazell
    Technosailor



  2. #2
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually you just do this

    <body onload="blah(); blah2();">

    make sure you use a semi-colon at the end of each function call.

    also remember if you use 'return' in the onload it will not execute the next part of the function or what ever comes next.

    <body onload="blah(); return blah2(); this_will_not_get_executed()">


Bookmarks

Posting Permissions

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