Connecting Tech Pros Worldwide Forums | Help | Site Map

embedded background sound on webpage

Newbie
 
Join Date: Sep 2007
Posts: 4
#1: Sep 14 '07
Is this the correct script to enable background sound on a webpage?
It works both in IE and Firefox, but is there a better way?

<EMBED src="country.mid" hidden="true" LOOP="TRUE" AUTOSTART="TRUE">

Thank you for your assistance,
Joe

Death Slaught's Avatar
Site Addict
 
Join Date: Aug 2007
Location: Tennessee
Posts: 952
#2: Sep 14 '07

re: embedded background sound on webpage


Quote:

Originally Posted by Joe2Shoe

Is this the correct script to enable background sound on a webpage?
It works both in IE and Firefox, but is there a better way?

<EMBED src="country.mid" hidden="true" LOOP="TRUE" AUTOSTART="TRUE">

Thank you for your assistance,
Joe

Sup Joe2Shoe, Welcome to TSDN!

Please use the proper code tags when you post code.

Well I'm not really sure, I've asked a similar question on the JavaScript forum , do to the fact that I wan't my HTML document to have only the basic structure in it, and not each page with 1000+ lines of code.( In other words anything thats not HTML is going to external documents). So if any one replies to me ( THE CLOCKS TICKING PEOPLE!!!!!! jk ) we'll both have our answers.


Thanks, Death

PS - yea using the "embed" tag should do the trick.
Death Slaught's Avatar
Site Addict
 
Join Date: Aug 2007
Location: Tennessee
Posts: 952
#3: Sep 14 '07

re: embedded background sound on webpage


I forgot about this one:

Expand|Select|Wrap|Line Numbers
  1. <bgsound src="location" />
The only broblem with it is that it's only supported in IE ( Internet Explorer).

- Death
Newbie
 
Join Date: Sep 2007
Posts: 4
#4: Sep 14 '07

re: embedded background sound on webpage


Death,
"Please use the proper code tags when you post code."

What's this mean?
I'm new here, and write code using notepad+.
I don't know too much.
Thanks,
Joe
Newbie
 
Join Date: Sep 2007
Posts: 4
#5: Sep 14 '07

re: embedded background sound on webpage


Death,
You're right, that one only works in IE. I'll stick with the original one I posted, until I can find one that works mo betta.
Thanks,
Joe
Newbie
 
Join Date: Sep 2007
Posts: 4
#6: Sep 14 '07

re: embedded background sound on webpage


Death,
Oh, now I see:
Use CODE tags around your code:
Expand|Select|Wrap|Line Numbers
  1. ..code goes here..
Thanks,
Joe
Death Slaught's Avatar
Site Addict
 
Join Date: Aug 2007
Location: Tennessee
Posts: 952
#7: Sep 17 '07

re: embedded background sound on webpage


Quote:

Originally Posted by Joe2Shoe

Death,
"Please use the proper code tags when you post code."

What's this mean?
I'm new here, and write code using notepad+.
I don't know too much.
Thanks,
Joe

Lol it meens that if your using HTML you need to highlight it and click the "<>" button, same if your using PHP, except you would click the piece of paper that says PHP, and anything else click the "#" button.

- Death
Death Slaught's Avatar
Site Addict
 
Join Date: Aug 2007
Location: Tennessee
Posts: 952
#8: Sep 17 '07

re: embedded background sound on webpage


Here's a good link that has tutorials on alot of the languages.

- Death
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,580
#9: Sep 17 '07

re: embedded background sound on webpage


I'm paused in a meeting but you shouldn't use <embed>. Actually, there is no such thing. Microsoft made it up years ago, most browsers work with it (sort of), but all will tell you to use the <object> element. <embed> causes too many problems.
Reply