Hi

I want to trigger an marker event on mouse over event of a link,
Following is my code

 function createMarker(point,name,html) {
        var marker = new GMarker(point,Icon);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });

        // Switch icon on marker mouseover and mouseout
        GEvent.addListener(marker, "mouseover", function() {
          marker.setImage("marker.png");
        });
        GEvent.addListener(marker, "mouseout", function() {
          marker.setImage("coldmarker.png");
        });
        gmarkers[i] = marker;
        htmls[i] = html;


        return marker;
      }

and link code is here
<a  onmouseover="javascript:GEvent.trigger(markers[0],"mouseover");">Link
</a>
But it's not triggering the mouse over event.

please Help.



-- 
Rahul Dongre

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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