JS:
function addPointsImg(features)
{
var point = new ESRI.ADF.Geometries.Point(parseFloat(features[i]["x"]),parseFloat(features[i]["y"]),spatialReference);
addSiteLable(map, point, features[i]["type"]+"|"+features[i]["area"], features[i]["id"], features[i]["tip"], imageUrl,features[i]["ctype"],features[i]["code"]);
}
//图片方式标注功能
function addSiteLable(map, point, type, id, tip, imageUrl,ctype,scode) {
var adfMarkerSymbol = new ESRI.ADF.Graphics.MarkerSymbol(imageUrl, 10, 10, "hand");
var graphicFeature = new ESRI.ADF.Graphics.GraphicFeature(point,adfMarkerSymbol,null);
graphicFeature.add_click(function bb() { showDetail.returnMe(type, graphicFeature, "", "",ctype,scode)(); });