473,372 Members | 1,113 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,372 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 2890
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.