Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/
4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)
Timestamp: Tue, 2 Mar 2010 00:25:51 UTC
Message: Object expected
Line: 39
Char: 1
Code: 0
URI: http://www.weltmeer.ch/divelog/
=============================================
insert into head with your other maps code
=============================================
<script type="text/javascript">
function usa() {
map.setCenter(new GLatLng(37.09024, -95.712891), 3);
}
function china() {
map.setCenter(new GLatLng(38.963981, -90.180936), 4);
}
</script>
=================================================
in the body of your doc. add the links
=================================================
<a href="#" onclick="usa();">U.S.A</a><br />
<a href="#" onclick="china();">China</a><br />
i could not find anything on using the options you are describing, but
this is the method i use myself. The links are clickable on this
sample map i made to help. Sample: http://shawnsspace.com/Maps/
On Feb 28, 1:03 pm, vincent <[email protected]> wrote:
> Hello
> i have a question
> on my pagehttp://www.weltmeer.ch/divelog/
> on the top right i have a country selector
> which i would like - after selection to show it on the map
>
> this would be the script to read out the DB
> and collect the countrys
>
> having a look at others they have a onchange="goCountry()
> but i can't find out what to do
>
> thanks for help and i know it is not only GoogleMAP problem
> vincent
>
> <select name="country" class="textfeld" onchange="goCountry()">
> <?php
> //kategorien auslesen
> $sqlbefehl =" Select printable_name
> From country ";
> $erg_cats = mysql_query($sqlbefehl)or die(mysql_error().
> $sqlbefehl);
> while($cat = mysql_fetch_assoc($erg_cats)){
> echo '<option value="'.$cat['printable_name'].'">'.
> $cat['printable_name'].'</option>';
> }
> ?>
> </select>
--
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.