hi, it's me again. i have another problem. i've built the legend, but if i make a double click on the map (with the legend open), the legend will move!
why???? On 3 Ago, 15:36, Federico Ulfo <rainelemen...@gmail.com> wrote: > the simplest solution: > > <div id="legend" style="display:none;" > onMouseOver="document.getElementById('legend').style.display > = 'inline';" onMouseOut="document.getElementById('legend').style.display = > 'none' "> > <div id="l1"><a href="#">Voice</a></voice> > <div id="l2"><a href="#">Voice</a></voice> > ... > <div id="ln"><a href="#">Voice</a></voice> > </div> > > Cheers, > Federicowww.raintpl.com > > 2010/8/3 Rossko <ros...@culzean.clara.co.uk> > > > > I have "scanned" the page with firebug, but i have noticed that every > > > div into legenda have "no name": they have only a tag "div". how can I > > > specify it? > > > You build the entire content of your legenda div in your own code. If > > you want to assign it an id= , then assign it an id. > > xxxxx.setAttribute('id',divIdName); > > > For applying CSS it might be better to assign it to a class instead: > > >http://www.onlinetools.org/articles/unobtrusivejavascript/cssjssepara... > > > Not a maps question. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps JavaScript API v3" group. > > To post to this group, send email to > > google-maps-js-api...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.