1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script type="text/javascript">
var myPano;
function initialize() {
var fenwayPark = new GLatLng('<?php echo $res_pro['lat'];?>','<?php echo $res_pro['lon'];?>');
panoramaOptions = { latlng:fenwayPark };
myPano = new GStreetviewPanorama(document.getElementById("pano"), panoramaOptions);
GEvent.addListener(myPano, "error", handleNoFlash);
}
function handleNoFlash(errorCode) {
if (errorCode == 603) {
document.getElementById("pano").innerHTML = "<a style='font-size:10px;cursor : pointer;' href='javascript:void(0)' rel='nofollow' onclick=\"window.open('view_street.php?ID_ENTREPRISE=<?php echo $res_pro['id_entreprise']?>',null,'width=400,height=400, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=yes');\">vue</a><br /><br /><br />";
}
else {
document.getElementById("pano").innerHTML = "<a style='font-size:10px;cursor : pointer;' href='javascript:void(0)' rel='nofollow' onclick=\"window.open('view_street.php?ID_ENTREPRISE=<?php echo $res_pro['id_entreprise']?>',null,'width=400,height=400, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=yes');\"><img src='images/general/vue360.png' alt='justacote' class='no-bord' /></a><br /><br /><br />";
}
return "vue";
}
</script>
<div name="pano" id="pano" style="width: 100px; height: 20px"></div> |
Partager