<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>循环播放</title>
</head>
<script type="text/javascript">
    window.onload = function(){
        var index = 0;
        var video = document.getElementById("videoID");
            video.onended = function() 
            {
                if(index){
                    index = 0;
                    video.src="222.mp4";
                }else{
                    index = 1;
                    video.src="221.mp4";
                }        
            };
    }
    
</script>
<body>
<video id="videoID" src="222.mp4" autoplay controls="controls" ></video>
</body>

相关文章:

  • 2021-06-19
  • 2022-02-02
  • 2022-12-23
  • 2021-11-13
  • 2021-12-28
  • 2021-08-29
猜你喜欢
  • 2021-09-11
  • 2022-12-23
  • 2021-11-19
  • 2021-09-15
  • 2022-01-27
  • 2021-10-19
  • 2021-11-23
相关资源
相似解决方案