マップポイントのそれぞれにクラスポイントがある場合、これは機能する可能性があります。
これを試してください:http://jsfiddle.net/nrwyz/8/。
コード:
HTML
<div class="point">
</div>
Javascript
$(".point").live("mouseover", function() {
//code to show description
$(this).append('<div class="mapitem-smalldescription">Small description</div>');
});
$(".point").live("mouseout", function() {
//code to show description
$(".mapitem-smalldescription").fadeOut(200);
});
$(".point").live("click", function() {
//code to full description
$(this).append('<div class="mapitem-fulldescription">Full description</div>');
});
CSS
.point {
width: 40px;
height: 40px;
border-radius: 100px;
background-color: #550000;
}
.mapitem-smalldescription {
width: 100px;
height: 100px;
background-color: #00FF00;
}
.mapitem-fulldescription {
width: 100px;
height: 100px;
background-color: #FF0000;
}
編集:これはあなたが説明した方法により近い振る舞いをするバージョンです:http://jsfiddle.net/nrwyz/23/。他に変更または追加する必要があるものがあればお知らせください。
お役に立てば幸いです。