I have problem with JavaScript, onmouseover
and onmouseout
events. When mouse comes to bottom edge of desired element, mouseover and mouseout effects start blinking. Here is example:
function menuHover(field)
{
var img = field.nextElementSibling;
var height = img.height;
var bottom = 0 - Math.floor(height / 2);
bottom += 'px';
img.style.display = 'block';
img.style.bottom = bottom;
}
function menuHoverOut(field)
{
var img = field.nextElementSibling;
img.style.display = 'none';
}
DEMO: https://jsfiddle.net/index23/ety2z0zu/9/
Is there solution for this?