Here's a cross browser solution to enable you to run your makeMap()
function on page load:
if(window.addEventListener){
window.addEventListener("load", makeMap, false);
} else {
window.attachEvent("onload", makeMap );
}
And if you want to execute GUnload when the page unloads then:
if(window.addEventListener){
window.addEventListener("unload", GUnload, false);
}else{
window.attachEvent(
"onunload", GUnload);
}
Gets around the problem that the CMS generates the page BODY tags.
Martin.
On 20 Oct, 01:25, Mike Williams <[EMAIL PROTECTED]> wrote:
> You can only have one <body> tag in a page. The browser will ignore one
> of them. In this case it looks like browsers are ignoring this one
> <body onload="makeMap();">
> and honouring this one, which is presumably inserted by your CMS
> <body
> onload="MM_preloadImages('/assets/img/help-on.gif','/assets/img/informati
> on-on.gif','/assets/img/active-on.gif','/assets/img/exit.gif')">
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---