try now
http://win.cvao-soaring.org/PUblic/global/mappaGlobal.asp?dbname=CVAO Adriano Ellero [email protected] On 5 April 2011 23:36, Luke Mahé <[email protected]> wrote: > The URL you gave doesn't seem to be working. > > -- Luke > > > On Wed, Apr 6, 2011 at 12:51 AM, Adriano Ellero > <[email protected]>wrote: > >> I can change attribute of my custom control by mouse event, but I cannot >> change opacity. If I try the control disappear >> >> this is the link to the page (where it is possible to check the change of >> attributes of custom control. >> >> http://win.cvao-soaring.org/PUblic/global/test_mappaGlobal.asp?dbname=CVAO >> >> part of code: >> >> var TB = document.createElement('TABLE'); >> >> >> TB.setAttribute('style','filter:alpha(opacity=50); -moz-opacity:0.5; >> opacity:0.5; -khtml-opacity:0.5; border:0'); //----- example of >> transparency 50% >> var TR = document.createElement('TR'); >> var TD = document.createElement('TD'); >> TB.setAttribute('width',"300px"); >> TB.setAttribute('height',"50px"); >> var TX = document.createElement('DIV'); >> >> TX.setAttribute('id','ShowMouseCoordinate'); >> >> var gMap = >> document.getElementById("map_canvas"); >> >> gMap.appendChild(TB); >> TB.appendChild(TR); >> TR.appendChild(TD); >> TD.appendChild(TX); >> TD.setAttribute('id','TDbox'); >> >> TD.setAttribute('style','background-color:black; color:grey; >> font-weight:bold'); >> >> >> >> google.maps.event.addDomListener (TB, >> "mouseover", function (){ >> >> TD.setAttribute('style','background-color:white'); >> // alert('in'); >> }); >> >> google.maps.event.addDomListener (TB, >> "mouseout", function (){ >> >> //TD.setAttribute('style','filter:alpha(opacity=50); -moz-opacity:0.5; >> opacity:0.5; -khtml-opacity:0.5;'); >> // alert('out'); >> >> TD.setAttribute('style','background-color:black;'); >> }); >> >> >> >> map.controls[google.maps.ControlPosition.BOTTOM_CENTER].push(TB); >> //add box for coordinate indicaition >> >> >> Adriano Ellero >> [email protected] >> >> email sent by Mac Pro >> >> >> >> -- >> 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. >> >> > -- 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.
