ollie007 Posted June 8, 2009 Share Posted June 8, 2009 <script type="text/javascript"> AudioPlayer.embed("audioplayer_1", { soundFile: "http://yoursite.com/path/to/mp3_file_1.mp3" }); </script> Quote Link to comment Share on other sites More sharing options...
KevinM1 Posted June 8, 2009 Share Posted June 8, 2009 <script type="text/javascript"> AudioPlayer.embed("audioplayer_1", { soundFile: "http://yoursite.com/path/to/mp3_file_1.mp3" }); </script> echo "Need more details, and some context, before anyone can help you out."; echo "What element needs to be replaced? How/where are you calling the embed function?"; echo "Also, you DO realize it's rude to simply write a block of code and say 'fix it,' right?"; Quote Link to comment Share on other sites More sharing options...
ollie007 Posted June 8, 2009 Author Share Posted June 8, 2009 <p id="audioplayer_1">Alternative content</p> <script type="text/javascript"> AudioPlayer.embed("audioplayer_1", {soundFile: "http://yoursite.com/path/to/mp3_file.mp3"}); </script> i would like to replace that element, unfortunately, the CMS i am using is parsing out, "onclick, JS" etc so i need to wrap up the js in a simple funtion like $('audioplayer_1').loadaudio($link, $title) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.