-
Notifications
You must be signed in to change notification settings - Fork 2
/
player.html
26 lines (26 loc) · 1.02 KB
/
player.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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8" />
</head>
<body bgcolor="#000">
<div id="obj" style="margin-left:-11px;">
</div>
<script language="javascript">
function play(i) {
document.getElementById("obj").innerHTML = '<object id="MediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" height="63" width="320"><param name="enableContextMenu" value="false" /><param name="url" value="' + self.parent.radioUrl(i) + '" /><param NAME="AutoStart" VALUE="1"><embed id="MediaPlayer1" src="' + self.parent.radioUrl(i) + '" type="application/x-ms-wmp" enableContextMenu="0" autostart="1" height="63" width="320"></embed></object>'
}
var i = self.parent.readCookie('defaultradio');
var c = self.parent.readCookie('myplayList');
if (i) play(Number(i));
else if (c) {
c = c.split(",");
var j = Number(c[0]);
play(j)
} else play(0);
window.onmousewheel = function(e) {
e.preventDefault();
}
</script>
</body>
</html>