Sound on site? Oo

All about creating websites!
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Sound on site? Oo

Post by ayu »

Apparently this code doesnt work in Mozilla Firefox

<bgsound src="images/Sound 1.mp3" loop=-1>


Does anyone have a code that works for both?
"The best place to hide a tree, is in a forest"

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Try <embed src="images/Sound 1.mp3" loop=true>.
¯\_(ツ)_/¯ It works on my machine...

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Thanks <3
"The best place to hide a tree, is in a forest"

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

No problem.
¯\_(ツ)_/¯ It works on my machine...

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

oh darn, it embeds the song but the song doesnt play =( i just get a large "quicktime" thingy in the upper left corner ;/
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

try this:

Code: Select all

<EMBED src="file.mp3" autostart=true hidden=true loop=true>
also check here:
http://www.world-voices.com/resources/addaud.html
:wink:

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Still only plays in IE :/ not in firefox
"The best place to hide a tree, is in a forest"

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

hehe....browser compatibility...the nighmare of every web developer... :lol:
try this:

Code: Select all

<embed src="file.mp3" type="application/x-mplayer2" autostart="true" playcount="true" loop="true" height="0" width="0">

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

lol, still the same thing :/ works in IE....not in FF :'(
"The best place to hide a tree, is in a forest"

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Maybe it's my Mozilla configuration? :S
oh, and i discovered yet another problem =P
when the sound plays, it loops, but there is a tiny hole between the end and when it starts again, i want it to just go on like there was no end to it. (like one large song)
"The best place to hide a tree, is in a forest"

User avatar
CommonStray
Forum Assassin
Forum Assassin
Posts: 1215
Joined: 20 Aug 2005, 16:00
18

Post by CommonStray »

um to do that i think you may have to edit the audio file itself, but im not sure

Post Reply