PDA

View Full Version : Random Songs


xethers
07-26-2005, 05:14 PM
Hi , i have 4 songs in the bottom right , 1 is autoplay , www.dudos.tz4.com , i was wondering if theres a code that will make one song start and then another time another song starts like everytime you refresh , a different song . Is this possible? Thanks for your help! :boogy:

_Aerospace_Eng_
07-26-2005, 05:36 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Random mp3 Music Player</title>
<script type="text/javascript">
<!--
nummp3 = 10
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1))
mp3=("song1.mp3")
if (x == (2))
mp3=("song2.mp3")
if (x == (3))
mp3=("song3.mp3")
if (x == (4))
mp3=("song4.mp3")
if (x == (5))
mp3=("song5.mp3")
if (x == (6))
mp3=("song6.mp3")
if (x == (7))
mp3=("song7.mp3")
if (x == (8))
mp3=("song8.mp3")
if (x == (9))
mp3=("song9.mp3")
if (x == (10))
mp3=("song10.mp3")
//-->
</script>
</head>

<body>
<script type="text/javascript">
<!--
document.write('<object id="mediaPlayer" width="1" height="1" '
+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
+'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="fileName" value="'+mp3+'">'
+'<param name="autoStart" value="true">'
+'<param name="showControls" value="false">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="false" width="1" height="1" '
+'src="'+mp3+'" autostart="true" loop="true">'
+'</embed>'
+'</object>');
//-->
</script>
</body>
</html>

xethers
07-26-2005, 06:00 PM
<br><div align="right">System of a Down<div id=vpdiv>-BYOB- <embed style="FILTER: xray" name="RAOCXplayer" autoplay="true" src="http://systemofadown.com/Videos/SOAD_BYOBVid_Explicit_300.asx" type="application/x-mplayer2" width="145" height="20" ShowControls="1" ShowStatusBar="0" AutoSize="true" loop="true" EnableContextMenu="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div></br>
<br>System Of a Down<div id=vpdiv>-Chop Suey- <embed style="FILTER: xray" name="RAOCXplayer" autoplay="false" src="http://www.systemofadown.com/Videos/ChopSueyFullVid_300.asx" type="application/x-mplayer2" width="145" height="20" ShowControls="1" ShowStatusBar="0" AutoSize="true" loop="true" EnableContextMenu="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div></br>
<br>Nine Inch Nails<div id=vpdiv>-The Hand That feeds-<embed style="FILTER: xray" name="RAOCXplayer" autoplay="false" src="mms://a1630.v8725f.c8725.g.vc.akamaistream.net/7/1630/8725/v0001/msnent.download.akamai.com/8725/DBA90618/published/Video/Music/High/NineInchNails_TheHandThatFeeds.wmv" type="application/x-mplayer2" width="145" height="20" ShowControls="1" ShowStatusBar="0" AutoSize="true" loop="true" EnableContextMenu="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div></br>
<br>For You " Gangsters" -Snoop Dogg-<div id=vpdiv>-Drop It Like Its Hot-<embed style="FILTER: xray" name="RAOCXplayer" id="player" autoplay="false" src="http://x2.musicvideocodes.com/61//6814104137.asf" type="application/x-mplayer2" width="145" height="20" ShowControls="1" ShowStatusBar="0" AutoSize="true" loop="true" EnableContextMenu="0" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div></br>
</div>

Thats the code i have , i dont quite understand what to do with the code above. Could you please help me? :)

_Aerospace_Eng_
07-26-2005, 06:09 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Random mp3 Music Player</title>
<script type="text/javascript">
<!--
nummp3 = 4
day = new Date()
z = day.getTime()
y = (z - (parseInt(z/1000,10) * 1000))/10
x = parseInt(y/100*nummp3,10) + 1
if (x == (1))
mp3=("http://systemofadown.com/Videos/SOAD_BYOBVid_Explicit_300.asx")
if (x == (2))
mp3=("http://www.systemofadown.com/Videos/ChopSueyFullVid_300.asx")
if (x == (3))
mp3=("mms://a1630.v8725f.c8725.g.vc.akamaistream.net/7/1630/8725/v0001/msnent.download.akamai.com/8725/DBA90618/published/Video/Music/High/NineInchNails_TheHandThatFeeds.wmv")
if (x == (4))
mp3=("http://x2.musicvideocodes.com/61//6814104137.asf")
//-->
</script>
</head>

<body>
<script type="text/javascript">
<!--
document.write('<object id="mediaPlayer" width="300" height="270" '
+'classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" '
+'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="fileName" value="'+mp3+'">'
+'<param name="autoStart" value="true">'
+'<param name="showControls" value="true">'
+'<param name="loop" value="true">'
+'<embed type="application/x-mplayer2" '
+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
+'showcontrols="true" width="300" height="270" '
+'src="'+mp3+'" autostart="true" loop="true">'
+'</embed>'
+'</object>');
//-->
</script>
</body>
</html>