View Full Version : Music help


cute_angel10490
07-15-2003, 08:36 AM
hi, I have 2 music questions

1) ok, I embed my page but how do I hide the console?

2) I made a play link: <a href="music.wma" Loop="Infinite" class="music">Play</a>, when I tried clicking it, it downloads the song then play it on winamp, is there a way I can just click on the link and the song plays?

btw, the music is a music code

briankircho
07-15-2003, 04:56 PM
From the MSDN on the windows media control, if you wanted to make links that control the playing of a streaming audio file (WMA), you might do something like this:

<OBJECT ID="Player" height="0" width="0"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">

</OBJECT>
<a href="javascript:StartMeUp()">Play</a>
<a href="javascript:ShutMeDown();">Stop</a>

<SCRIPT>
<!--

function StartMeUp ()
{
Player.URL = "music.wma";
}

function ShutMeDown ()
{
Player.controls.stop();
}

-->
</SCRIPT>

Chrissi
07-15-2003, 05:29 PM
I reccomend NOT having music on your webpage... to me whenever I come across a site that plays music, especially without an option for it to stop, I LEAVE IMMEDIATELY. I pretty much have my winamp playing constantly, and I want to listen to MY music, not the music of the page creator. A lot of my friends are the same way. Sorry if that seems cruel...

MaGiCSuN
07-15-2003, 07:16 PM
then i would recommend having a music box that doesn't start playing when you start up the page. Int hat way people can choose to play it or not.

Love,
Mirna

cute_angel10490
07-16-2003, 02:51 AM
Thank you so much! :)

cute_angel10490
07-16-2003, 10:45 AM
Sorry to double post but I have another question:

here's the code:

<center>
<OBJECT ID="Player" height="0" width="0"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
</OBJECT>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()" style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BACKGROUND: #EC93B1; FONT: 7.5pt verdana; BORDER-LEFT: #ffffff 1px solid; COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()" style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BACKGROUND: #EC93B1; FONT: 7.5pt verdana; BORDER-LEFT: #ffffff 1px solid; COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid">
<SCRIPT>
<!--

function StartMeUp ()
{
Player.URL = "song.wma";
}

function ShutMeDown ()
{
Player.controls.stop();
}

-->
</SCRIPT>

</center>

<embed src="song.wma" autostart="true" loop="true" hidden="true"><noembed><bgsound src="song.wma" loop="infinite"></noembed>


the stop button only works if you click on play, is it possible to make the embed music stop using the same stop button?

cute_angel10490
07-20-2003, 09:23 AM
hello....

here's my whole music code.....

<OBJECT ID="Player" height="0" width="0"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
</OBJECT>
<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()" style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BACKGROUND: #EC93B1; FONT: 7.5pt verdana; BORDER-LEFT: #ffffff 1px solid; COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()" style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 1px solid; BACKGROUND: #EC93B1; FONT: 7.5pt verdana; BORDER-LEFT: #ffffff 1px solid; COLOR: #ffffff; BORDER-BOTTOM: #ffffff 1px solid">
<SCRIPT>
<!--

function StartMeUp ()
{
Player.URL = "song.wma";
}

function ShutMeDown ()
{
Player.controls.stop();
}

-->
</SCRIPT>


1) how come when I put the code, there's a little black dot beside the play button? (tell me if you need the whole code, like the thing with the <HTML>, <BODY>, etc....)

2) is it possible to make the song loop? coz I want the song to be infinite so ppl just have to click on stop

Thank you Thank you if you help me! :D


It's not necessary to make multiple threads on the same topic. -Moderator