Question:
Can someone help me with my HTML code?
Soul Reaper
2011-07-20 19:20:28 UTC
Ok what I want to do is add background music to my site, it's just a trial because I'm testing to see what I can do. I know you want to make the music file into a .wav because .mp3 files have trouble on sites. So I have my .wav in the same folder as my .html, I tried it on google chrome, and internet explorer no luck so here's my 2 codes, one is the music by itself the rest is what I'm working with.
Music


Code



MyWebsite




Hello:D





Hello this is my paragraph


youtube



Lawl




Three answers:
anonymous
2011-07-21 00:20:38 UTC
You were told in the same type post before that the file name is incorrect. You can not use compound words in file names. Use any of these: fallen-angels.wav | fallen_angels.wav | fallenangels.wav



Be sure file name is changed in the path and actual file. As shown, your media file and HTML file must be in the same directory. If not, correct the path as file can not be found if they don't share a proper relationship as given by the relative path.



How to Add Music to Web Site:



How to play music on a website, blog or MySpace with HTML music codes.: http://www.hypergurl.com/music.html

How to Add Background Music to Your Web Page: http://www.thesitewizard.com/webdesign/backgroundmusic.shtml

How to Add Background Music to a Website: http://www.2createawebsite.com/enhance/adding-music.html

How To Add Music to a Website Using HTML Code: http://www.howtodothings.com/computers/a2739-how-to-add-music-to-a-website-using-html-code.html

How To Add Music To Your Blog Or Website: http://bandweblogs.com/howtoaddmusictowebsite.html



Customize a Flash Video Player with playlist: http://www.playerdiy.com/support/tutorial/customize-flash-video-player.html



Embedding Media:



Although the embed tag (there's only ONE) is deprecated, it is still included for some browsers. You can get the needed media code for your video at the following sites.



http://cit.ucsf.edu/embedmedia/step1.php

http://embedthevideo.com/



I don't agree with using tables and usually change the code to div, nor do I agree with the fact the code includes a closing embed tag which is not needed, but it does get the job done. The one site allows you to test the video so be sure to put the correct paths in.



This may be helpful: JW FLV Media Player 4.4 - http://www.longtailvideo.com/players/jw-flv-player/



Ron
Fred
2011-07-20 19:23:40 UTC
1)use filenames with no spaces

2)be sure the capitalization of your filename is EXACT inside your HTML code

3)Make a new HTML file with only the Title and Head and Embed lines...always debug your code by trying the simplest form of it.



If you have this code on a live website, we can troubleshoot more.
Bee
2011-07-20 19:24:28 UTC
only works for Mozilla based browsers like Firefox.

For others, you need like this :





















Oh by the way, using a file name with upper case, and space is inviting trouble. Use a file name like fallen_angels.wav or fallenangels.wav. Change your code accordingly.

This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...