On Mar 24, 11:30 am, iyanghao <[email protected]> wrote: > i just try to build a webpage by google map api . > i only havan a domain name and a google map api key. > If you want ,i will e-mail you my webpage.
I don't want that, but since it's tiny... The page is run in the order everything appears, except for functions. Your "initial" function is run when the page has loaded because of onload="initial()" Your script files are simply included in the page, and executed as though you had typed their content instead of put it in an external file. That means that rt3.js is run when the page reads its <script> tag. At that stage, you haven't even reached var map let alone the assignment to a new GMap2 object. When you attempt to add a listener to map, it has never heard of it. Copy the Javascript from rt3.js and put it just above the last } in function initial. Then remove the <script> tag which loads rt3.js. 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 [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 -~----------~----~----~----~------~----~------~--~---
