the problem seems to be the array:
that works (but i overwrite myMarker in every loop iteration):

        var myMarker = marker[divider];
        if(item['elemId']) {
                GEvent.addDomListener( document.getElementById(item['elemId']),
'mouseover', function() {
                        GEvent.trigger(myMarker, 'mouseover');
                });
                GEvent.addDomListener( document.getElementById(item['elemId']),
'mouseout', function() {
                        GEvent.trigger(myMarker, 'mouseout');
                });
        }
and that doesnt work:

var myMarker = new array();
....
        myMarker[divider] = marker[divider];
        if(item['elemId']) {
                GEvent.addDomListener( document.getElementById(item['elemId']),
'mouseover', function() {
                        GEvent.trigger(myMarker[divider], 'mouseover');
                });
                GEvent.addDomListener( document.getElementById(item['elemId']),
'mouseout', function() {
                        GEvent.trigger(myMarker[divider], 'mouseout');
                });
        }

:::me is confused:::
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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