I am trying to highlight an area on a bitmap. The following is the code I need to implement. Would like to stick with plain JavaScript.
<map class="optionSelector" name="mapTable" id="mapTable">
<area class="selected" shape="circle" coords="660,160,60" href="#123" onclick="SU37(), myFunction();" />
<area class="selected" shape="circle" coords="1016,160,60" href="#123" onclick="SU38(), myFunction();" />
</map>
function myFunction() {
var select = document.getElementsByClassName('selected').mouseover(function() {
for (var i = 0; i <= 2; i++) {
var opt = document.createElement('option')[i];
opt.style.bgColor = '#DA0';
select.appendChild(opt);
}
});
}