Background Music | SoloLearn: Learn to code for FREE!

+1

Background Music

I want to know how to add and auto-play music on a website using a url can anyone help me with this?

7/8/2017 7:35:26 AM

Animefreak otaku

32 Answers

New Answer

+17

<audio src=....... autoplay autobuffer preload loop></audio>

+16

Are you on mobile?? Is "src" correct?? (Are you really an Anime Freak?? ^_^)

+16

Give me the source.

+16

@Animefreak As expected.... Wrong link.... You cannot steal audio from Youtube or Soundcloud.... Let me hack it for you.....

+16

Use this as src : https://dl.dropboxusercontent.com/s/50626ucyvh9wdux/ComeCloser.mp3?dl=1&raw=1

+16

not possible but you could try : <audio src=file:///sdcard/audio.mp3 .....> (I used a bot made by myself...)

+16

+16

What?? ^_^

+16

div,body{ width:450px; height:450px; background-image:url(.gif);/*maintance here*/ background-size:cover; animation:hvr .1s infinite; transform:translate(-50%,-50%); position:fixed; left:50%; top:50%; transition:0s; } body { position:absolute; margin:0; overflow-y:scroll; } @keyframes hvr{ to{} } /*does this work??*/

+15

+15

What about now?? (editted previous post)

+15

Why don't you just put an image (<img>) with position fixed and z-index less that the other elements z-index..... Give me your full code if you want me to debug it.....

+15

+15

What effect do you want to achieve on hover??

+3

("Anime" freak the "otaku" away,ok) And Now wait Some new knowledge from Valentin

+2

For the music or the code playground?

+2

I freaking love you @ValentinHacker!!!!!

+1

You seem to have taken a liking to me for some reason, but can you help me use it? I tried putting it under the body tag and that didn't work.

+1

No, I am not I am currently on PC but I am needing to use a url to get the music into the code playground, and I have no idea if src is right... Yes!

+1

https://www.youtube.com/watch?v=Njn6dNHE644 https://soundcloud.com/kk-halverson/come-closer-jacksepticeye-antisepticeye-remix-day-by-dave Wait "Very Hard" what?