實際效果查看:
http:///keleyi/phtml/jqtexiao/28.htm
請使用支持HTML5的浏覽器查看本效果。
完整代碼如下:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>jQuery循環背景視頻動畫-</title>
<meta name="description" content="播放背景視頻" />
<meta name="author" content="Keleyi" />
<link rel="stylesheet" href="http:///keleyi/phtml/jqtexiao/28/css/style.css">
<link rel="stylesheet" href="http:///keleyi/phtml/jqtexiao/28/BigVideo/css/bigvideo.css">
</head>
<body>
<div class="main">
<div id="overview" class="box">
<h1>一只小蜜蜂,飛在花叢中</h1>
<h2>左飛飛,右飛飛,剪刀、石頭、布</h2>
<h2>請使用<a href="http:///a/bjac/g039tue3.htm">支持HTML5的浏覽器</a>查看本頁。<a href="http:///a/bjad/s11hwa0d.htm">原文</a></h2>
</div>
</div>
<!-- BigVideo Dependencies -->
<script src="http:///keleyi/pmedia/jquery/jquery-2.1.1.min.js"></script>
<script src="http:///keleyi/phtml/jqtexiao/28/jquery-ui.min.js"></script>
<script src="http:///keleyi/phtml/jqtexiao/28/video.js/video.js"></script>
<!-- BigVideo -->
<script src="http:///keleyi/phtml/jqtexiao/28/BigVideo/lib/bigvideo.js"></script>
<!-- Demo -->
<script>
$(function () {
var BV = new $.BigVideo();
BV.init();
BV.show('http://down./files/Keleyi.mp4', { doLoop: true });
});
</script>
</body>
</html>
參考:HTML5播放視頻簡單代碼