Thank you it work, sorry for the basqic question... Cédric
On 6 fév, 17:10, marcelo <[email protected]> wrote: > <script> > window.onload = loadMap; > </script> > > Not really a Google Maps API question, just basic javascript. > > -- > Marcelo -http://maps.forum.nu > -- > > On Feb 6, 5:07 pm, 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- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
