Hi,
I need a little help...
I have a site that also have intranet, so i need to change the key
value to show the maps
I've tried this way:

<script type="text/javascript">
if(location.hostname==="algo.com.br"){
key="ABQIAAAAymmHjJI6LNB6Bo04OeX7URStAwH7Yymo5FAWwJwyRBz18dCZUBQ6Xeh_a1WXxhI-
Fkd4g6D5Itjwyg" ;
}
else if(location.hostname==="algo.intranet"){
key="ABQIAAAAz0mw2W5Qr0HS8IB0T_o4ThQ5KXwvXlTsSBsUvuTBSvvg4mjKvRT3WnawkLC_rWIqyCKn76bynKXOFA";
}
</script>
  <script src="http://maps.google.com/maps?file=api&v=2&key="key"";></
script>

The first script works, but i don't know how to pass the key value to
the url.
Any ideas?
Thanks

--~--~---------~--~----~------------~-------~--~----~
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