I'm a new guy at HTML and JavaScript so can someone tell me how to add music to my code and and the on/off feature. Also can you put it in normal English cause in very new and I'm just lerning. THANK YOU to whoever responds.![]()
I'm a new guy at HTML and JavaScript so can someone tell me how to add music to my code and and the on/off feature. Also can you put it in normal English cause in very new and I'm just lerning. THANK YOU to whoever responds.![]()
Generally, most people advise avoiding music on web pages because it can get annoying. But if you really have a specific reason for it... first save your music as a file that can be played online. From you're question, that would probably be a .wav or .mid
Then you upload to your server. If you want someone to click and hear music, it would just be a regular links like
<a href="music.mid">Hear music</a>
That lets people choose if they want to hear music or not. If you wanted it embedded, it would be
<embed src="music.mid" />
Use autostart to make it start automatically, and loop to make it play more than once.
<embed src="music.mid" autostart="true" loop="false" />
There have been a lot of discussions on this subject, so if you search for "embedding sound" "playing sound on page" and things like that, you can probably find some old topics that have more info too.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Thanks everybody i really needed that. And i can't exactly say what it is that i need the music for because it goes against the rules here and in the U.S its against the law.
A reply like that implies that you intend to serve copyright-protected audio over the Internet without permission from the copyright holders. For your information, that isn't just illegal in the United States, it's illegal in virtually every country on the planet.
Most nation states are signatories to the World Trade Organisation (WTO), and the Charter requires that member states enforce copyright legislation to allow for fairer trading between nations.
Mike
Yeah i know but i was bron in the u.s and i live in a little country where the laws don't matter called the DOMINICAN REPUBLIC so here i'll never get caught![]()
![]()
![]()
Dude i know that but there is no law reinforcement.
in this place the police once found 400 kilos of cociane being sold in the casino in front of the station and the records don't show where it went to afterwards. They wont worry about me and an illegal website
If you are actually going to do something illegal, then please don't tell us about it.
And just because someone doesn't catch you that doesn't mean it's ok. As such, you can't just say the police don't do anything, so help me anyway.
Additionally, it's quite possible to illegally download/upload music in the US as well. But we don't help with that, either.
anyway, you asked a question and I think you have the answer. right?
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
Ok you're right you win and I'm wrong but my final point is that i need help to put music optionally on my web site legal or illegal and i did get my answer and i made a stupid comment but do you really have to blow things out of proportions??? Don't answer this thread is done and unless anyone has any real important point that has to do with the subject at hand lets just end this.
Bookmarks