473,405 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 2892
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

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

Similar topics

9
by: yawnmoth | last post by:
i've written a php script that generates images dynamically, via the GD library. i now want to detect whether or not the image is embedded within a homepage, or is being viewed by itself. at...
2
by: fuliopen | last post by:
I put background sound with tag <bgsound src=''> in a page, and like to give the visitor an option to unable it. Can this be accomplished? If yes, what's the tag or command? Thanks.
1
by: Vanessa | last post by:
Anyone know how to embed sound file to vb.net project, then play the sound file? I have searched the web for example... and download the example and when run, it works perfectly. But when i...
2
by: Sam | last post by:
Hi all I have a web page that allows user to referenced a stylesheet on my local network. Is there a way to detect the background color of this webpage? If I know the stylesheet that was used to...
4
by: devphylosoff | last post by:
hi folks I am looking for a tool (script, plugin, code, ...) which can generate background image for webpage look at background on http://vtorrent.info/ page or on the Vista webpage. I want...
1
by: wstach | last post by:
Hi, I'm using Windows XP, IIS & ASP to develop a web service that executes several programs (command line .exe files) on a server, shows next webpage with info on progress in execution, and...
1
by: OBAFGKM_RNS | last post by:
I am not an expert in javascript, so forgive me if all this sounds dumb. On my webpage, I have slot machine. I want to hear a click sound when the wheels stop spinning. Heres how i can SORT OF do...
8
by: raylopez99 | last post by:
I have the latest version of Visual Studio 2008 Professional, which allows you to create resource files (this is the .resx file, no?), unlike the Express version, which does not. I am trying to...
2
by: ventsislav | last post by:
I want to have a background music to my simple app and a buton which plays another sound, but when I press the button the sound from it interrupts the background sound. I tried with SoundPlayer and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.