|
Embedded Media Player - Quick Code ?
Im using the following brief code to tune into one channel via the play button(which is now playing top 40 and will be relabeled such), but I want to add the ability to tune into other stations via other buttons like a button to tune into a Country station I specify, a Rock station I specify, etc.......
<HTML>
<HEAD>
</HEAD>
<BODY>
<OBJECT ID="Player" height="200" width="240"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
</OBJECT>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()">
<SCRIPT>
<!--
function StartMeUp ()
{
Player.URL = "http://66.68.55.244:8000";
}
function ShutMeDown ()
{
Player.controls.stop();
}
-->
</SCRIPT>
</BODY>
</HTML>
I think I need to add If statements?
Thanks!
Chaser
|