How do I add a sound clip (mp3 song sample of band) to my site?

G

Guest

I just want to know how to add a sound clip (not background sound) to my
site. When a visitor wants to hear what a band sounds like they can click on
link and hear it.
 
T

Trevor L.

You could do it this way

Have this row in a table
<tr>
<th id="music"> </th>
</tr>
Or it could be
<span id="music"></span>

and this anchor
<a href='#' onclick="getmusic()">PLAY</a>

The function getmusic() is
document.getElementById('music').innerHTML=
'<embed src="minuet.mid" width="144" height="45" autostart="true"
loop="false"></embed>'
where minuet.mid is the file you want to play.

--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
I just want to know how to add a sound clip (not background sound) to
my site. When a visitor wants to hear what a band sounds like they
can click on link and hear it.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top