stublackett Posted November 18, 2008 Share Posted November 18, 2008 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.... Quote Link to comment https://forums.phpfreaks.com/topic/133188-solved-body-onload/ Share on other sites More sharing options...
JasonLewis Posted November 18, 2008 Share Posted November 18, 2008 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();"> Quote Link to comment https://forums.phpfreaks.com/topic/133188-solved-body-onload/#findComment-692698 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.