-
Notifications
You must be signed in to change notification settings - Fork 205
/
demo_bg.html
87 lines (69 loc) · 2.71 KB
/
demo_bg.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title>Make an HTML5 video a background - body bg demo</title>
<link rel="stylesheet" href="assets/framework.css"/>
<link rel="stylesheet" href="assets/style.css"/>
<script type="text/javascript" src="assets/jquery-1.5.1.js"></script>
<script type="text/javascript" src="jquery.videoBG.js"></script>
<script type="text/javascript" src="assets/script.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-7654450-4']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div class="wrapper">
<div id="header">
<h1><a href="http://www.pledgie.com/campaigns/14895" id="donate_now" style="float:right">Buy me a beer</a>
jquery.videoBG plugin</h1>
</div>
<div id="main">
<ul id="nav">
<li><a href="index.html#about">About</a></li>
<li><a href="index.html#documentation">Documentation</a></li>
<li><a href="index.html#demos">Demos</a></li>
<li><a href="https://github.com/sydlawrence/jquery.videoBG">Download</a></li>
<li><a href="index.html#donate">Donate a beer</a></li>
</ul>
<div id="demos" class="tab">
<a style="float:right" href="http://www.w3.org/html/logo/">
<img src="http://www.w3.org/html/logo/badge/html5-badge-h-multimedia.png" width="133" height="64" alt="HTML5 Powered with Multimedia" title="HTML5 Powered with Multimedia">
</a>
<div class="demo">
<h2>Fixed body background</h2>
<p>As seen on this page</p>
<pre><code>
$('body').videoBG({
position:"fixed",
zIndex:-1,
mp4:'christmas_snow.mp4',
ogv:'christmas_snow.ogv',
webm:'christmas_snow.webm',
poster:'christmas_snow.jpg',
opacity:0.5
});
</code></pre>
</div>
</div>
<div id="donate" class="tab">
<h2>Donate a beer</h2>
<p>You are more than welcome to donate me some beer money :)</p>
<p>I recommend £3 for a donation, just £3!</p>
<a href='http://www.pledgie.com/campaigns/14895'><img alt='Click here to lend your support to: jquery.videoBG and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/14895.png?skin_name=chrome' border='0' /></a>
</div>
<div id="footer">
<a href="http://sydlawrence.com" style="float:right;color:#a1a1a1;">Handcrafted by Syd</a>
</div>
</div>
<div class="clearfix"> </div>
</div>
</body>
</html>