how to have background music in the site?

sssblueb

New Member
Messages
2
Reaction score
0
Points
0
what is the coding for background music and do need the copyright for uploading the music file?
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Moved to site management...
 

Starshine

Legend Killer
Messages
14,423
Reaction score
0
Points
0
I am not sure of the coding, but to answer your second question. Yes.
You have to have permission from the artist, or copyright holder to host or play music on x10.
( Please review the x10 TOS )
 

Mooseman

New Member
Messages
89
Reaction score
0
Points
0
In your HTML index file, add like this whereever you want, but at the end is best :

<embed style="width:1px;height:1px;" autostart="true" loop="true" src="URL-TO-MUSIC-FILE"></embed>

Just replace URL-TO-MUSIC-FILE with a real url.
It can be any kind of musicfile you like, be it .mp3, .mid, .wav....whatever
Autostart and loop can also be set to false. Loop means it plays over and over again.
If you set autostart to be "false", you need to set the width and height to like 180px and 100px.
This way ppl can see the panel on the player and start it whenever they want
You can also set the height and width to whatever you like.

I have 1px in both, because I dont want the player to be seen.


Hope this helps ;)
 

leed88

New Member
Messages
4
Reaction score
0
Points
0
@mooseman thanks for that post. would you now how to code button for turning off the sound if user wanted?
 

Mooseman

New Member
Messages
89
Reaction score
0
Points
0
If you use HEIGHT=60 WIDTH=144 you will get a simple control panel on the player itself where they can pause/start the music
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
Alternatively you could embed the sound file in a flash movie :) This has the added advantage of them NOT being able to easily download your music
 
Top