skip to Main Content

Javascript – onmouseover event suddenly not working in Edge browser

I have the following code throughout my site to swap images on hover: <img class="rounded-lg object-cover shadow-lg transition hover:scale-[1.05]" src="/assets/profiles/leadership/volker-photo-detail-hover.png" onmouseover="this.src='/assets/profiles/leadership/volker-photo-detail-hover.png';" onmouseout="this.src='/assets/profiles/leadership/volker-photo-detail.png';"> which has been working fine for the last year, but suddenly it won't work correctly in Microsoft Edge…

VIEW QUESTION
Back To Top
Search