0
我正在爲我的視頻製作自定義播放暫停按鈕。但是,當我將鼠標懸停在按鈕上時,按鈕將保持閃爍。任何想法停止閃爍時,我將鼠標放在按鈕上?由於Jquery mouseover和mouseout問題
$('#fullplay')
.mouseover(function() {
$('#playpausevideo').fadeIn();
})
.mouseout(function() {
$('#playpausevideo').fadeOut();
});
.container{
}
.playpausevideo{
height:100px;
width:100px;
position:absolute;
background-image:url('/../../Images/onbigplan/bigfullplay.png');
\t background-repeat:no-repeat;
\t background-position:center;
cursor:pointer;
display:none;
background-color:#000;
z-index:99999;
}
.playpausevideo.selected{
height:100px;
width:100px;
position:absolute;
background-image:url('/../../Images/onbigplan/bigfullpause.png');
\t background-repeat:no-repeat;
\t background-position:center;
cursor:pointer;
background-color:#ff0000;
z-index:99999;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="container">
<div id="playpausevideo" class="playpausevideo noselected"></div>
<video id="fullplay" autoplay muted loop poster="" width="400px" height:="300px">
<source src="http://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
<source src="http://www.w3schools.com/html/mov_bbb.ogg" type="video/ogg" />
</video>
</div>