Two onload events ... how to code?

They have: 54 posts

Joined: Oct 2001

Probably a stupid question, but I need to have two onload events in my HTML. One is to pre-load a series of mouseovers, the other is to open a pop up window using Javascript. No matter what I do, I only seem to be able to have one or the other! It's probably just that I'm just not getting the code quite right. Can someone point me in the right direction? The two instructions I need to put in are as follows.

onLoad="javascript:popUp('splash.htm')"'

onLoad="MM_preloadImages('images/block_solve_MO.gif','images/block_filter_MO.gif','images/block_essence_MO.gif','images/block_purify_MO.gif');"'

Thankee

Bug

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Separate the function calls with semicolon(s).

onLoad="javascript:popUp('splash.htm'); MM_preloadImages('images/block_solve_MO.gif','images/block_filter_MO.gif','images/block_essence_MO.gif','images/block_purify_MO.gif');"
'

Wink

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.