On Mar 9, 2:16 pm, Abacin Adminstrator <abacinmarket...@gmail.com> wrote: > Thanks for pointing this out. I noticed this long time ago too. > However, I am not so good at Javascript. The code: > <body onload="gmap()" onunload="GUnload()"> > <div id="google_map" style="width:600px;height:400px"></div> > </body> > was copied from somewhere. Since I am running PHP script, I must call > the Java function in the middle of of my pages. Besides <body> > element, what other element can I use to call the function?
(a) Java is to Javascript as grape is to grapefruit, or mousse is to pamplemousse. Similar words, but definitely not the same thing! (b) Use window.onload to set the onload handler for the page; (c) Or use Google's own event handler. See this thread: http://groups.google.com/group/Google-Maps-API/browse_thread/thread/d6230c520508d63 Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---