【发布时间】:2014-01-06 11:21:40
【问题描述】:
我正在使用 jQuery VMap,它在这段代码中运行良好
jQuery('#vmap2').vectorMap({
map: 'world_en',
backgroundColor: '#fff',
color: '#9e2842',
hoverOpacity: 0.6,
selectedColor: '#8B0000',
enableZoom: true,
showTooltip: true,
values: sample_data,
scaleColors: ['#D35471', '#691B2D'],
selectedRegion: null,
normalizeFunction: 'polynomial',
onRegionClick: function(element, code, region)
{
if (region == "Singapore") {
document.getElementById('mailblock').innerHTML = 'Contact Information for Singapore :';
}
if (region == "HongKong") {
document.getElementById('mailblock').innerHTML = 'Contact Information for HongKong :';
}
}
});
现在我想更改选定国家/地区的颜色,悬停时只说 5-6 个国家/地区。
【问题讨论】: