Click to See Complete Forum and Search --> : Audio Button for web disk?


PhotoJoe
01-31-2005, 12:52 PM
First let me give you a little background of what I'm trying to do.

I am converting my photography instruction book with audiotapes to a CD that will use IE to view and hopefully listen too. I have all the text and graphics layed out already. I have a table of content that displays after the opening splash page. The TC will point to the beginning of each lesson. Each page has a next, previous back to TC button (on the top and bottom of each page.

Now what I need some help with is creating a button that will play each audio file that is listed in the TC. I think the following code:

<embed src="myfile.mp3"></embed>

will point to the audio file and use the computer's default audio player (Windows Mediplayer), but how do I create the button and have it reference the above code. Or do I need to do it a completely different way.

Thanks,
Joe

soccer362001
01-31-2005, 01:07 PM
The embed tag is a depriciated tag, so I would think of another way to do it.

Robert Wellock
01-31-2005, 01:36 PM
Embed never existed in the Technical Recommendations. However I did create a Valid XHTML Embed element, and if it's MP3 format you'll most likely need a MPU stub file.

That embed will just embed the object perhaps you either want JavaScript or the <object> element for more control.