| ■37721 / ) |
Re[9]: Aspで地図上にアイコンを表示させる |
□投稿者/ Ai (7回)-(2009/06/29(Mon) 14:23:24)
|
どうもありがとうございます!
アドバイス通り修正して実行してみたのですが、アイコンがまったく配置できない状態になってしまいました。。
googleで探し回っているのですがなかなか参考になるものがないです。。。
function putBomb(e){
if(e.target == document.getElementById("clear")){
return;
}
var w = imgToPut.width;
var h = imgToPut.height;
var x = getPageX(e)-Math.floor(w/2);
var y = getPageY(e)-Math.floor(h/2);
var div = createLayer(x, y, w, h);
loadDivImage(div, imgToPut.src, w, h);
setDivVisibility(div, true);
}
<p>
<input id="clear" type="button" name="button" value="クリア" onclick="putBomb = ''" >
</p>
(※一部抜粋)
|
|