Page 1 of 1
how to play an audio file
Posted: Sat Dec 10, 2005 2:17 am
by itsmani1
i want to play an audio file on some button or image click?
what could be the method?
Posted: Sat Dec 10, 2005 3:43 am
by onion2k
Use Flash.
Posted: Sat Dec 10, 2005 6:14 am
by m3mn0n
Moved to Client Side.
Why not just <embed>?
Posted: Mon Dec 12, 2005 6:09 am
by yourrussianlady
For start of video or a sound
<IMG DYNSRC="12.mpg" START="FILEOPEN" WIDTH="200" HEIGHT="250">
or
<embed src = "12.mpg" width = "400" height = "350" autostart = "true" loop = "False">
Posted: Mon Dec 12, 2005 9:45 am
by Roja
Sami wrote:Why not just <embed>?
Because its not valid html, and as a result, causes WAI compliance problems.
(Object is the correct solution, but IE<7 doesn't support it. Groan).
There are a
variety of solutions, most of which vary in their sneaky use of flash. Its the *only* area I really advocate the use of flash as a top-tier solution.