Jump to content

[SOLVED] body onLoad


stublackett

Recommended Posts

Hi,

 

I'm working on someone elses work, That person made a JavaScript file that pre-loads images and acts as an mouseover.

 

My issue is, I need to put a Google Maps API Bit of script also in the body unload bit, But where do I put it ?

 

Heres the current code :

<body onload="MM_preloadImages('images/buts/home-over.jpg','images/buts/rooms-over.jpg','images/buts/local-over.jpg','images/buts/directions-over.jpg','images/buts/contact-over.jpg')">

 

Heres what Google Needs me to add

<body onload="load()" onunload="GUnload()">

 

Where do I add that bit of google code....

Link to comment
https://forums.phpfreaks.com/topic/133188-solved-body-onload/
Share on other sites

Just wack it on the end.

 

<body onload="MM_preloadImages('images/buts/home-over.jpg','images/buts/rooms-over.jpg','images/buts/local-over.jpg','images/buts/directions-over.jpg','images/buts/contact-over.jpg'); load();" onunload="GUnload();">

Link to comment
https://forums.phpfreaks.com/topic/133188-solved-body-onload/#findComment-692698
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.