Hi,
I have this piece of code and I need to get the value of the variable 'filmus1" into the audioplayer line.
Thanks for any help.
I have this piece of code and I need to get the value of the variable 'filmus1" into the audioplayer line.
Code:
<p id="audioplayer_m">blabla</p>
<script type="text/javascript" language="JavaScript">
function choosebox1()
{
var filmus="";
var filmus1= "";;
varNumber = <?php echo '"'.$i.'"'; ?>;
for (k=0; k<varNumber; k++) {
if(document.getElementById('CBT'+k).checked){
if (filmus==""){
filmus = filmus + (document.getElementById('CBT'+k).value);}else
{filmus = filmus + "," + (document.getElementById('CBT'+k).value);}
}else {}
}
filmus1 = '"' + filmus + '"';
AudioPlayer.embed("audioplayer_m", {soundFile: ([B]get the filmus1 value here[/B]), width: 400, autostart: "yes"});
}
</script>
Comment