Ramdon Media Player

2 Dec

<script language="javascript">

<!–
function random_audlink()
{

var audiosingers=new Array()
var audiotitle=new Array()
var audioslink=new Array()
var audiolyric=new Array()

var i=0

i=i+1
audiosingers[i]=""
audiotitle[i]=""
audioslink[i]=""
audiolyric[i]=""

i=i+1
audiosingers[i]=""
audiotitle[i]=""
audioslink[i]=""
audiolyric[i]=""

var ra=0

while (ra==0)
var ra=Math.floor(Math.random()*audioslink.length)

if (location.href=="http://x-guy.blogspot.com/&quot;)
{
document.write('<center><OBJECT id="wmp" width="200" height="180" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject"><PARAM NAME="URL" VALUE=' + audioslink[ra] + '><PARAM NAME="AutoStart" VALUE="True"><PARAM NAME="loop" VALUE="false"><PARAM name="Volume" value="10"><PARAM name="uiMode" value="full"><PARAM name="PlayCount" value="1"><embed src=' + audioslink[ra] + ' console="smallconsole"></OBJECT></center>')

document.write('<br><center>' + audiotitle[ra] + ' – ' + audiosingers[ra] + '</center>')
document.write('<br><center>' + audiolyric[ra] + '</center>')
}
else
document.write('<br><center>No Media at this page.</center>')

}
//–>
</script>

Put this Code to where you want to put the player.

<script language="javascript">random_audlink()</script>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: