How do u play music in javascript?

please dont move me

If you posted in the right section we wouldn’t have to move you :sigh:

And you can’t play sound with Javascript, to play sound in an HTML page you need to embed it in a player such as windows media player, real player, or quicktime. I don’t know for sure, but I believe their help files show you how.

This isn’t something I recommend doing, it is extra loading time for something that most people don’t want :-\

if you have real producer, you can convert the music into a .RAM file. This will allow you to have controls (play, stop, etc…) And it will stream through while you browse the web site. But with copyright issues these days, i wouldnt recommend it. :stuck_out_tongue:

I found this over at Virtual-FX: http://virtual-fx.net/vfx/tutorial/tutorial9_65_20020102.php I also remember a long time ago about playing MIDI files referred in HTML by using Flash. I hope the above link helps though.

Cheers!
Kirupa :slight_smile:

you can use a fscommand to trigger a flash sound file through javascript