Ciao ino, scrivimi pure in italiano, ti aiuto volentieri. immagino che il problema è nel positioning della legenda o nel css. Ci sono anche errori di codifica, per correggerli aggiungi il metatag charset e salva in utf-8:
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> (se usi zend o dreamweaver, dovresti trovare un menù a tendina "codifica" o "charset") in english: Hi ino, write in italian, is a pleasure to help you. I imagin the problem regards the positioning of the lengend or into the css. There's a coding error, to fix it add this metatag and save the file in utf-8 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> in zend or in dreamweaver there's a combobox "coding" or "charset" Ciao, Federico 2010/8/4 inotipiedideipitoni <[email protected]> > i use ie8 and firefox 3.6 and happens the same thing. > > try this way: > > 1 - press the button legenda once (the legenda will appear down the > button) > 2 - double click on the map > > do you see that the legenda has moved? > > On 4 Ago, 14:19, Rossko <[email protected]> wrote: > > > if you press on the button "Legenda", the legend appear, but if tou > > > make a double click, or zoom, or change the map, the legend will move > > > automatically. > > > > Can't see that happen. What browser are you using? > > > > > if I write into the css: > > > .legenda > > > { > > > border-style : solid; > > > border-width : 2px; > > > } > > > the style won't take effect. > > > > That's right ; your legend hasn't got class='legenda'. You need to > > assign a class name to the div that you create. (You might find it > > easier to understand if you don't use the same name for everything) > > legenda.className = 'rhubarb' ; > > This isn't a maps question. > > > > > I hope I explained it well. > > > > > On 4 Ago, 13:05, Kesuke <[email protected]> wrote: > > > > > > 1. Your map isn't working in IE (but is in Firefox). > > > > 2. The root to 'main.css' is broken (or the file is non-existent) > > > > which may well be causing some of your problems. > > > > 3. Try replacing your doctype with - <!DOCTYPE html> to load in > > > > standards mode. > > > > > > Personally, I wouldn't link a css document for this. You're only > going > > > > to have a few css definitions anyway so just stick them in the same > > > > document. It will load faster, keep everything together and help us > > > > understand what's happening. > > > > > > I suspect that almost all the problems you have are to do with your > > > > CSS rather than the map API. > > > > > > On Aug 4, 10:17 am, inotipiedideipitoni > > > > > > <[email protected]> wrote: > > > > > yes: the page is still > > > > > > >http://www.federicarizzi.com/map/legend.html > > > > > > > now i've specified the doctype and legenda now is a normal div > (i've > > > > > tryed to create a class named lagenda for the css, but i think i > made > > > > > some mistakes). > > > > > > > the problem is still the same: when I open the "legenda" and i make > a > > > > > zoom or double click, the legenda will move... > > > > > > > thanks for support > > > > > > > On 4 Ago, 10:59, Rossko <[email protected]> wrote: > > > > > > > > > i've built the legend, but if i make a double click on the map > (with > > > > > > > the legend open), the legend will move! > > > > > > > > Assuming we are still on > > > > > > http://www.federicarizzi.com/map/legend.html > > > > > > it doesn't do that on FF2 > > > > > > > > No legend button at all in IE6, that might be the lack of > <!DOCTYPE > > > > > > > > Your script is creating some mystery tag > > > > > > legenda = document.createElement("CLASS"); > > > > > > I'm not sure what that is about. It'll probably work better if > you > > > > > > use a conventional tag recognised by browsers, like <div>- Hide > quoted text - > > > > > > > - Show quoted text -- Hide quoted text - > > > > > - Show quoted text - > > -- > 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 > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > federico, are you italian? can you help me for building a legend? and... can I speak with you in italian????????? On 3 Ago, 15:36, Federico Ulfo <[email protected]> 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 <http://federicowww.raintpl.com/> > > 2010/8/3 Rossko <[email protected]> > > > > 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 > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-maps-js-api-v3%[email protected]> <google-maps-js-api-v3%[email protected]<google-maps-js-api-v3%[email protected]> > -- 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 [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-js-api-v3?hl=en.
