hi,
I'm trying to load audio files dynamicly but i got some errors.
my code :
it doesnt work and i tried :
and
first code didnt work and other two work but when they load i can see just single color, no image, no text nth else. When i use embed tag staticly it works great.waiting for answers...
I'm trying to load audio files dynamicly but i got some errors.
my code :
Code:
File.prototype.OpenAudioFile = function(dPath)
{
aSound= document.createElement("embed");
aSound.src = dPath;
aSound.name = "ses";
this.data = aSound;
aSound.onload = this.FileDownloaded();
}
Code:
document.write("<embed src=" + dPath + " name=" + dPath + " autostart=false onload=this.FileDownloaded()></embed>");
Code:
document.write("<bgsound src=" + dPath + " name=" + dPath + " autostart=false onload=this.FileDownloaded()></embed>");
Comment