sg

Salı, Kasım 29, 2005

Re: logic in my sidebar code is off


thanks larry

geocodezip@gmail.com wrote:
> remove the PHP from inside createMarker.
> change it to
> function createMarker(point,address,html) {
> var marker = new GMarker(point, icon);
> GEvent.addListener(marker, "click", function() {
> marker.openInfoWindowHtml(html);
> });
> // save the info we need to use later for the sidebar
> gmarkers[i] = marker;
> htmls[i] = html;
> // add a line to the sidebar html
> sidebar_html += '<a href="javascript:myclick(' + i + ')">' +
> '<img
> src="http://labs.google.com/ridefinder/images/mm_20_red.png">' +
> address + '</a><br>';
> i++;
> return marker;
> }
>
>
> Then when you call it below (from your PHP script) change the call (I
> am not a php expert...) to pass the "address" to the function
> "createMarker".
>
> -- Larry
>
> var marker = createMarker(point, <?php echo($address3);?> , <?php echo
> html contents...?>

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık