how to change marker icon

how i change marker icon?

If you’re using OpenLayers, check out the page source of the sample code at http://openlayers.org/dev/examples/markers.html , especially the section starting with

var icon = new OpenLayers.Icon(‘http://boston.openguides.org/markers/AQUA.png’,size,offset);

and attaching as a marker.