在html图像标记中使用数组

时间:2012-12-27 09:02:31

标签: html google-maps-markers

我正在尝试将图片添加到google标记,以下是我的代码

var marker = _newGoogleMapsMarker({

    _map: map,

    _lat: tmpLat,

    _lng: tmpLng,

    _head: '|' + new google.maps.LatLng(tmpLat, tmpLng),

    _data: '<div id="bg">\

<h2 class="title">' + tmpName + '</h2>\

<h3 class="address">' + tmpAdr + '</h3>\

<h3 class="pc">' + tmpPc + '</h3>\

<h3 class="telephone">' + tmpTel + '</h3>\

<img src="images/abcd.gif" alt="Description:" width="142" height="82"></img>\

</div>'

});

如何用名为tmpImage的变量名称替换abcd.fig?

0 个答案:

没有答案