How do you make music play on a web page?
-
I'm designing a web page for my web design class that has a 50's diner theme. I was wondering if anyone knew a way to play music on a page? I was going to set a picture of a jukebox to play music when it was clicked, but I'm not sure how to do that. I figured that I would be able to make the picture a link to an identical web page, that had the music playing. I am only using HTML, is there a way for me to make music play? Even if I can't have it be click able, I would like to have it play. Thanks for the help!
-
Answer:
There a few ways to do it <a href="yourmidname.mid">Click here to play music </a> this will appears as a text link and will only play when people click on it <embed src="yourmusic.mid"> <noembed> <bgsound src="yourmusic.mid"> </noembed> this will play automatically when the page load <embed src="yourmusic.mid" width="140" height="40" autostart="false" loop="FALSE"></embed> this will show a small bar that let people to start/pause and modify volume if you need something more fancy you will need to use photoshop to make an icon
Gavin at Yahoo! Answers Visit the source
Other answers
Use this HTML: <embed height="100px" width="100px" src="yourmusic.mp3" /> It will embed the music file into the web-page, along with music controls (depending on what browsers you use).
Sean
check this site http://www.w3schools.com/html/html_sounds.asp
thinker
Related Q & A:
- How to make reverse proxy and a check page?Best solution by Stack Overflow
- How to check if a web page loads?Best solution by Server Fault
- How do i add music to my yahoo 360 page?Best solution by Yahoo! Answers
- In the simplest clearest language possible, can any one tell me step by step how to get a web page or domain?Best solution by Yahoo! Answers
- How do I set up a web page?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.