aingcreation.blogspot.com
Lumayan lah tamba henteu teuing..
Search This Blog
NavBar
CSS
Saturday, April 23, 2011
Pasang Radio Online (media player embed)
Embed Code
<embed id='MediaPlayer' name='MediaPlayer' src='' type='application/x-mplayer2' width='300' height='45' ShowControls='1' ShowStatusBar='0' autostart="1" loop="1" EnableContextMenu='0' DisplaySize='0' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/'> </embed> <marquee behavior="alternate" scrollamount="2" id="nama-stat"></marquee> <script type="text/javascript"> var daptarChanel = [ "http://live.ardanradio.com:8228/", "http://www.sky.fm/wma/indierock.asx", "http://www.sky.fm/wma/altrock.asx", "http://www.sky.fm/wma/tophits.asx" ]; function gantiChanel(chanel){ if(chanel=='' || chanel==null){ daptarChanel = daptarChanel.sort(function() {return 0.5 - Math.random()}); var dChanel = daptarChanel[0]; }else{ var dChanel = chanel; } document.getElementById('MediaPlayer').src=dChanel; document.getElementById('nama-stat').innerHTML=dChanel; } document.write('<h3>Daftar Chanel</h3>'); for(x in daptarChanel){ document.write('<a onClick="gantiChanel(\''+daptarChanel[x]+'\')" style="cursor:pointer">'+daptarChanel[x]+'</a><br/>'); } gantiChanel(); </script>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment