Viewing File: /people/testlab/www/testlab.com.pl/script/mapa.php
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
<script type="text/javascript">
var mapa;
var dymek = new google.maps.InfoWindow(); // zmienna globalna
function dodajMarker(lat,lng,txt)
{
// tworzymy marker
var opcjeMarkera =
{
position: new google.maps.LatLng(lat,lng),
map: mapa
}
var marker = new google.maps.Marker(opcjeMarkera);
marker.txt=txt;
google.maps.event.addListener(marker,"click",function()
{
dymek.setContent(marker.txt);
dymek.open(mapa,marker);
});
return marker;
}
function mapaStart(a,b,z,opis)
{
var wspolrzedne = new google.maps.LatLng(a,b);
var opcjeMapy = {
zoom: z,
center: wspolrzedne,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
mapa = new google.maps.Map(document.getElementById("mapka"), opcjeMapy);
var marker = dodajMarker(a,b,opis);
}
</script>
<div style="background: none repeat scroll 0% 0% rgb(245, 245, 245); width: 330px; height: 260px; border: 1px solid rgb(174, 175, 173); -moz-background-inline-policy: continuous;" id="mapka"> </div>
<script type="text/javascript">
setTimeout( function() {var showmaps = new mapaStart("51.514429","-0.302696", 15,'<b>Capital Business Links Ltd.</b><br />28-29 The Broadway<br />Ealing, London, W5 2NP<br /><br /><b>Telephone:</b><br />Tel. 0208 567 99 44<br />Fax. 0208 567 99 55');}, 1000);
</script>
Back to Directory
File Manager