By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,758 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

sound problem

P: 13
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.
Sep 2 '09 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
So when do you want the sound file to play?
Sep 5 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.