sound problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • genesistr
    New Member
    • Aug 2009
    • 13

    sound problem

    Code:
    File.prototype.OpenAudioFile = function(dPath)
    {
    	var rem = document.createElement("div")
    	rem.name = "divv";
    	rem.id = "divId";
    	
    	rem.innerHTML = '<embed src="' + dPath + '" autostart="false" name="' + dPath + '"></embed>';
    
    	document.body.appendChild(rem);
    }
    I'm using the way above to solve my sound problem but when i attach div object to document sound plays automaticly.is there any solution for it?

    by the way, im not working on internet browsers, it's a part of a framework for tv. it supports js 1.2.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    So when do you want the sound file to play?

    Comment

    Working...