How to add event like onMouseOver to OpenLayers.Layer.Vector?

Hi all,

How to add event like onMouseOver to OpenLayers.Layer.Vector?
I just found ‘featureselected’ which is like onClick().

You need to add SelectFeautre control to your map and set the highlightOnly and hover options to true on that control.

http://dev.openlayers.org/docs/files/OpenLayers/Control/SelectFeature-js.html

Hi Pawel,thx for the reply?do u have any examples?

http://openlayers.org/dev/examples/highlight-feature.html

Hi Pawel,thx for the help,i got it now:D