Connecting Tech Pros Worldwide Forums | Help | Site Map

sound problem

Newbie
 
Join Date: Aug 2009
Posts: 12
#1: Sep 2 '09
Expand|Select|Wrap|Line Numbers
  1. File.prototype.OpenAudioFile = function(dPath)
  2. {
  3.     var rem = document.createElement("div")
  4.     rem.name = "divv";
  5.     rem.id = "divId";
  6.  
  7.     rem.innerHTML = '<embed src="' + dPath + '" autostart="false" name="' + dPath + '"></embed>';
  8.  
  9.     document.body.appendChild(rem);
  10. }
  11.  
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's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,586
#2: Sep 5 '09

re: sound problem


So when do you want the sound file to play?
Reply


Similar JavaScript / Ajax / DHTML bytes