How to add music to my loading screen

ok i just made a new loading screen but i have no clue how to add music can some one help me with this little issue.

Try:



<audio id="audio" type="audio/ogg" autoplay="true" style="visibility:hidden" src="music.mp3">


do i put it in my autoexec

No you put it in the html for your loading screen

<html>
<head>
<title>Background-Image Test</title>
<style>
body {
background-image: url(http://i.imgur.com/mJto7dC.png);
background-size: 100%;
background-origin: content;
background-repeat: no-repeat;
}
</style>
</head>
<body>
</body>
</html>
that is what i have where do i put it just below it and what do i put for the src a link to music or music in my sounds i out in a song i want to use

[editline]24th January 2014[/editline]

my sound i PUT in a



<html>
<head>
<title>Background-Image Test</title>
<style>
	body {
	background-image: url('http://i.imgur.com/mJto7dC.png'); 
	background-size: 100%;
	background-origin: content;
	background-repeat: no-repeat;
	}
</style>
</head>
<body>
	<audio id="audio" type="audio/ogg" autoplay="true" style="visibility:hidden" src="music.mp3"> <!-- Replace src="music.mp3" with the link or path to your sound, e.g src="sound/wubstep.mp3" or src="http://dropboxshit.com/demwubz.mp3" -->
</body>
</html>


thank you man your awsome

ok this didnt work fail on my part

How so? Show me your code. In code tags that is.

<html>
<head>
<title>Background-Image Test</title>
<style>
body {
background-image: url(‘http://i.imgur.com/mJto7dC.png’);
background-size: 100%;
background-origin: content;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<audio id=“audio” type=“audio/ogg” autoplay=“true” style=“visibility:hidden” src=“http://www.youtube.com/watch?v=ab9176Srb5Y”>
</body>
</html>

Well there’s your issue, you’re using youtube.

First issue with Youtube is that the code I provided does not work with youtube so you would have to download the actual MP3 somewhere.

Second issue is that that very Youtube song has a VEVO copyright and are not allowed to be embeded onto a page.

Download the actual mp3 somewhere.

That’s illegal yo

Define illegal :yarr:

ok well before that i used music i put in my sound folder and it was mp3 and it still didnt work

Omg -.- You want to put the music on the exact same place as you put the .html file…

Oh right… Sverige (You motherfucker :v: )

This is what is was but thanks for the help