-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (45 loc) · 1.58 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
49
50
51
52
53
54
55
56
57
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title></title>
<meta name="robots" content="noindex" />
<style type="text/css">
/*
-------------------------------------------------------------
In-page demo CSS - see external CSS for actual relevant stuff.
--------------------------------------------------------------
*/
body {
font:75% normal verdana,arial,tahoma,"sans serif";
}
</style>
<link rel="stylesheet" type="text/css" href="./css/mp3-player-button.css" />
<script type="text/javascript" src="./soundmanager2-nodebug-jsmin.js"></script>
<script type="text/javascript" src="./mp3-player-button.js"></script>
<script>
function findGetParameter(parameterName) {
var result = null,
tmp = [];
var items = window.location.href.split("?");
for (var index = 1; index < items.length; index++) {
tmp = items[index].split("=");
if (tmp[0] === parameterName) result = decodeURIComponent(tmp[1]);
}
return result;
}
soundManager.setup({
// required: path to directory containing SM2 SWF files
url: './swf/'
});
</script>
</head>
<body>
<div class="bg"><a href="./audio/1.mp3" id="linkElem" class="sm2_button"></a></div>
<script>
var aElem = document.getElementById('linkElem');
aElem.href = "./audio/" + findGetParameter('track') + ".mp3";
</script>
</div>
</body>
</html>