Log in

View Full Version : Html Help



Mlopez1993
05-23-2007, 12:48 AM
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.:)

Veronica
05-23-2007, 01:29 AM
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" />

djr33
05-23-2007, 02:24 AM
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.

Mlopez1993
05-23-2007, 10:35 AM
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.

mwinter
05-23-2007, 04:09 PM
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.

Mlopez1993
05-23-2007, 09:59 PM
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:) :) :)

mwinter
05-23-2007, 10:04 PM
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

The Dominican Republic has been a member of the WTO (http://www.wto.org/english/thewto_e/countries_e/dominican_republic_e.htm) since March 1995.

Mlopez1993
05-23-2007, 10:11 PM
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

djr33
05-24-2007, 02:28 AM
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?

Mlopez1993
05-24-2007, 02:15 PM
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.