I am trying to make an super easy audio player with jQuery.
How would you convert this
<a href="song.mp3">Song</a>
to this?
<object type="application/x-shockwave-flash" data="dewplayer.swf" >
<param name="flashvars" value="mp3=blank.mp3" />
</object>
<a href="song.mp3">Download</a>
So what needs to happen as I understand it
- The name of the link is changed to Download
- the flash object code is pasted before the link,
- the mp3 urls are stored,
- each respective mp3 url are inserted into each corrolating value="mp3=____"
This utilizes a simple flash audio player, Dewplayer.
Any thoughts?