Zero-x252
08-02-2003, 01:21 PM
Is it possible to use
<form name="musform">
<input type="file" name="music" accept="*.mp3, *.wav, *.mid" onChange="getdata()">
</form>
where getdata(){
var the_data = document.musform.music.value
if (the_data != ""){
document.writeln('<bgsound src="getdata(the_data)" loop="-1"></bgsound>' + '<embed src="getdata(the_data)" loop="-1"></embed>') else {document.writeln('No Music File Selected')}
}
<form name="musform">
<input type="file" name="music" accept="*.mp3, *.wav, *.mid" onChange="getdata()">
</form>
where getdata(){
var the_data = document.musform.music.value
if (the_data != ""){
document.writeln('<bgsound src="getdata(the_data)" loop="-1"></bgsound>' + '<embed src="getdata(the_data)" loop="-1"></embed>') else {document.writeln('No Music File Selected')}
}