471,603 Members | 1,480 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,603 software developers and data experts.

embedded background sound on webpage

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
Sep 14 '07 #1
8 2717
Death Slaught
1,137 1GB
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.
Sep 14 '07 #2
Death Slaught
1,137 1GB
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
Sep 14 '07 #3
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
Sep 14 '07 #4
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
Sep 14 '07 #5
Death,
Oh, now I see:
Use CODE tags around your code:
Expand|Select|Wrap|Line Numbers
  1. ..code goes here..
Thanks,
Joe
Sep 14 '07 #6
Death Slaught
1,137 1GB
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
Sep 17 '07 #7
Death Slaught
1,137 1GB
Here's a good link that has tutorials on alot of the languages.

- Death
Sep 17 '07 #8
drhowarddrfine
7,435 Expert 4TB
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.
Sep 17 '07 #9

Post your reply

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

Similar topics

9 posts views Thread by yawnmoth | last post: by
2 posts views Thread by fuliopen | last post: by
4 posts views Thread by devphylosoff | last post: by
1 post views Thread by OBAFGKM_RNS | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.