We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd45e1a commit 3bdd529Copy full SHA for 3bdd529
video.html renamed to hover-video-com-jquery.html
@@ -17,25 +17,13 @@
17
<script src="https://code.jquery.com/jquery-3.5.0.min.js"></script>
18
<script>
19
/*JQuery*/
20
- /*
21
var $video = $('#video');
22
$video.on('mouseenter focus', function(){
23
$video.get(0).play();
24
});
25
$video.on('mouseout blur', function(){
26
$video.get(0).pause();
27
28
- */
29
-
30
- /*Javascript*/
31
- var video = document.getElementById('video')
32
- video.addEventListener('mouseover', function() {
33
- video.play()
34
- }, false);
35
36
- video.addEventListener('mouseout', function() {
37
- video.pause()
38
39
</script>
40
</body>
41
-</html>
+</html>
0 commit comments