sidebar_html += '<input type="button" onclick="myclick(' + marker_num +
')" value="' + label + '"/><br>';

or there is also

 sidebar_html += '<button type="button" onclick="myclick(' + marker_num +
')">' + label + '</button><br>';

On Wed, Feb 29, 2012 at 7:19 AM, GeoChallenger <[email protected]>wrote:

> I am having trouble figuring out where in my map code I can change my
> sidebar from simple links to button style links. I am sure this is a fairly
> easy transition and then I could apply some css to make the new buttons
> look any way I like. Can someone help me find where in my code, and how I
> can make that change?
>
> In line 192 I have tried to change:
>         sidebar_html += '<a href="javascript:myclick(' + marker_num +
> ')">' + label + '</a><br>';
>         return marker;
>       }
> so that it uses traditional buttom html but it causes my map to load
> incorrectly.
>
> Thank you very much for you time, I really appreciate it!
>
> Here is my map: http://gradyandchrista.com/WeddingMap.html
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Maps API V2" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-api/-/mn0WQmc_sUsJ.
> 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.
>

-- 
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