<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Random mp3 Player</title>
<style type="text/css">
body {
text-align:center;
}
#music {
height:1px;
width:1px;
line-height:0px;
font-size:0;
position:absolute;
left:0;
top:0;
}
</style>
<script type="text/javascript">
<!--
function PlayIt(mp3){
nomp3 = 2 //jumlah mp3 yg mau diputer
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nomp3,10) + 1
//list lagunya disini
if (x == (1)){
mp3=("http://www54.indowebster.com/a867552d495fe321f28deb3ad1d2cf51.mp3")
}
if (x == (2)){
mp3=("http://www60.indowebster.com/c5e813ef66d89ff16763d22e18fbc17e.mp3")
}
document.getElementById('music').innerHTML='<object width="1" height="1" '
+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="url" value="'+mp3+'">'
+'<param name="uiMode" value="full">'
+'<param name="autoStart" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" uimode="full" width="1" height="1" '
+'src="'+mp3+'" autostart="true" loop="true">'
+'</object>';
}
window.onload=PlayIt;
//-->
</script>
</head>
<body>
<div id="music"></div>
</body>
</html>
Monday, May 16, 2011
PLAY MP3 RANDOM
waiting for his coming holy month of Ramadan
0 Comment:
Post a Comment