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.

Reply via email to