window.onload
window.onunload

On Feb 6, 8:07 am, pelloq1 <[email protected]> wrote:
> Hello,
>
> In the code sample of google, the loading of the map work like this :
>
> <script src="http://maps.google.com/maps?file=api&v=1&key=
> {googleApiKey}" type="text/javascript"></script>
> <script type="text/javascript">//<![CDATA[
>  function loadMap() {
>   if (GBrowserIsCompatible()) {
>
>    var map = new GMap2(document.getElementById("map"));
>    map.addControl(new GSmallMapControl());
> [...]
>   }
>  }
> //]]></script>
>
> <body onload="loadMap()" onunload="GUnload()">
>  <div id="map" style="width: 400px; height: 250px"></div>
> </body>
>
> That work fine. But, for some reasons (I use a cms), I cannot modify
> the <body> statement.
>
> My problem is: How can I done this code WITHOUT the <body
> onload="loadMap()" onunload="GUnload()">???
>
> Thanks you, Cédric
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to