Hey. There is a page http://its116.ru/objects/house-on-nekrasov/ with the choice of the floor of the house. When you hover on it and move the mouse - the floor flashes. On the other pages everything is ok. Checked the code, everything is unchanged. What could be?

    1 answer 1

    It is difficult to say where you have a problem, but if you make a code like on this page: http://its116.ru/objects/zorge/

    It will look like this:

    <div id="dom_plan"> <div id="select_floor" class=""></div> <div class="nekrasova" style="display: block; position: absolute; padding: 0px; width: 1019px; height: 456px; background: url( http://its116.ru/upload/dom_nekrasova.jpg);"></div> <div style="position:relative;z-index:51"> <img src="/upload/1x1.gif" width="1020" height="780" border="0" usemap="#Map"> </div> <map id="Map" name="Map">Тут ваши арии :)</map> </div> 

    With this code, everything works fine and is pressed.

    • Thank! So what was the problem after all?) - Lektor
    • one
      I tried to figure out something like this: you have an element, when you hover over which class is added, but when a class was added, the element left the field of guidance (the added class had position: absolute), and when the element left the field of guidance, it worked the event by which this class is removed, and then events trigger on each segment of the mouse movement, so when the mouse is pointing and stationary, it does not blink, and if you move it, then intense blinking occurs. There also canvas for some reason was, in general, easier to make a working version than to figure out why the bug. :) - MasterAlex