/
index.html
48 lines (48 loc) · 2.02 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Attach Swf list</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script src="attach_swf_list.js"></script>
<script type="text/javascript">
$(function(){
// In the HTML UL parent LI elements that contain videos must have a class of 'video'
// DIV children of LI.video must have a unique ID
//
// 1st arg: ID of gallery UL container
// 2nd arg: path and name of swfplayer
// 3rd arg: Array that corresponds with the contents of the gallery list...
// videos must be listed, and non-videos appear as blank spaces.
var swf_list = new AttachSwfList('#gallery', 'videoplayer.swf', ['http://www.mediacollege.com/video-gallery/testclips/barsandtone.flv','','http://www.mediacollege.com/video-gallery/testclips/20051210-w50s.flv', '']);
});
</script>
</head>
<body>
<ul id="gallery">
<li class="video">
<div id="some_id">
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</li>
<li>FPO 2</li>
<li class="video">
<div id="video_2">
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</li>
<li>FPO 4</li>
</ul>
<div class="nav">
<ul class="pager">
<li><a href="#">Play 1 (vid)</a></li>
<li><a href="#">Play 2</a></li>
<li><a href="#">Play 3 (vid)</a></li>
<li><a href="#">Play 4</a></li>
</ul>
</div>
</body>
</html>