On Oct 17, 6:02 am, Rossko <[email protected]> wrote:
> x = 2;
> x = 4;
> x will take the value 2 very briefly, but the end result will be seen
> as 4.   If you wanted x to be the sum of the two, you'd do something
> like
> x = 2;
> x = x + 4;
>
> Compare with
>
> > document.getElementById("topbar").innerHTML="";
> > document.getElementById("topbar").innerHTML=gmarkers[i].html;
> > document.getElementById("topbar").innerHTML=gmarkers[i].name;
>
> You'll want to find out how to "add-on" a string to an existing value
> in javascript.

Like you do here:
 var html = "<b>"+name+"<\/b><p style='font-size:smaller'>" + address
+ "<\/p>";


document.getElementById("topbar").innerHTML=gmarkers[i].name
 
+" "+gmarkers[i].address;

assuming your gmarkers array has name and address properties for each
marker (you can add html tags for formatting if you want).

(BTW - I get a "Website Under Review" message when I try to look at
the link you provided)

  -- Larry

> > document.getElementById("topbar").innerHTML=gmarkers[i].name;

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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