onmouseover,onmouseout鼠标的移开动作

            var point = new BMap.Point(x, y);
            var marker0 = new BMap.Marker(point);  // 创建标注
            var infoWindow = new BMap.InfoWindow(apName);//创建信息窗口
           
            //测试鼠标放上去后触发事件;
          marker0.onmouseover=function(){

                           alert(apName);

                         }//测试成功;
          
            marker0.onmouseover=function(){this.openInfoWindow(infoWindow);}//测试鼠标放上去后显示标点的信息;
            marker0.onmouseout=function(){this.closeInfoWindow();}//鼠标离开;

你可能感兴趣的:(onmouseover)