Conflict with another JS script
-
Nothing wrong with your plugin, I love it.
However it conflicts with another script that plays videos on mouse over.
When your plugin is active, videos don’t start playing on mouse over.Would you be able tell what is causing this conflict?
And how to make both scripts work?Here is our script.
window.onload = function() { const vids = document.getElementsByTagName("video") for (let i = 0; i < vids.length; i++) { vids[i].addEventListener( "mouseover", function(e) { vids[i].play() }) vids[i].addEventListener( "mouseout", function(e) { vids[i].pause() }) } }
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Conflict with another JS script’ is closed to new replies.