|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /home/queenjbs/www/ |
Upload File : |
<script>
var baseURL = "/music/"
var playList = ["Lovey-Dovey.mp3"];
var index = 0;
var canPlay = false;
function forward() {
var player = document.getElementById("player");
player.parentNode.removeChild(player);
index = index % playList.length;
var e =document.createElement('<embed id="player" hidden="true" src="' + baseURL + playList[index] + '" volume="50%" loop=true autostart=0></embed>');
document.appendChild(e);
canPlay = true;
checkStopped();
}
function checkStopped() {
var player = document.getElementById("player");
if (canPlay && player.PlayState < 2) {
forward();
}
}
function pause() {
document.getElementById("player").Pause();
canPlay = false;
}
function play() {
document.getElementById("player").Play();
canPlay = true;
}
function stop() {
document.getElementById("player").Stop();
canPlay = false;
}
window.onload = function() {
checkStopped();
forward();
}
</script>
<!--embed SRC="" id=player HIDDEN=true AUTOSTART=true volume="50%" loop=true autostart=1> </embed-->