Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

two onLoad events in a body tag?

Status
Not open for further replies.

BUSHhtr

Programmer
Dec 9, 2004
102
0
0
I am working on a redesign of a website. I worked very hard to get mouseovers for all but one menu item which is a drop down menu. This drop down requires that I have an onLoad event in the <body> ( onLoad="P7_ExpMenu()" ) via CSS etc - my client is a little concerned that the mouseovers load too slowly and I would like to have them reploaded ( onLoad="MM_preloadImages ). The problem is that I cant seem to have two OnLoad events. Can anyone help?
Here's the page -
thanks
Rob
 
Just have one onload routine call the other one before it's done.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Greg
Thanks!
Not sure if I follow though

you mean something like onLoad="P7_ExpMenu()" "MM_preloadImages" -images.......



 
A very quick google gives
Code:
<BODY onLoad="alert('Hello There!'); alert('Howdy!')">

or see Running two or more onload events


Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top