There is an image. It identified the site (image map).
Is it possible to make it so that when you hover over this area, it becomes red, for example?
There is an image. It identified the site (image map).
Is it possible to make it so that when you hover over this area, it becomes red, for example?
Use jquery mouseover
document.getElementById('imgmap201282416459').addEventListener("mouseover", function () { document.getElementById('imgmap201282416459').style.backgroundColor = 'Цвет_при_наведении'; }, false); document.getElementById('imgmap201282416459').addEventListener("mouseout", function () { document.getElementById('imgmap201282416459').style.backgroundColor = 'Цвет_при_отводе_мыши_от_элемента'; }, false);
And no jQuery needed :)
Source: https://ru.stackoverflow.com/questions/140226/
All Articles