Forum Home
Press F1
 
Thread ID: 26369 2002-10-25 09:54:00 Music playing while website is viewed vk_dre (195) Press F1
Post ID Timestamp Content User
93006 2002-10-25 09:54:00 how does one make an audio file start playing when soembody is viewing the site. I know hot to do it in FLash, but how do u do it normally, just the audio file being played while the site is viewed. Thanks in advance.

cheers,
v.K------------------- :D
vk_dre (195)
93007 2002-10-25 10:06:00 Netscape and IE use different code.

The IE version is:
<bgsound src="cowboys.mid">

Can't remember the Netscape code but I believe if you want it to be compatible with both browsers it pays to put a bit of javascript (the one that says "If the browser is Netscape then.... else Browser = IE then... (not sure of the exact syntax)
Heather P (163)
93008 2002-10-25 10:36:00 The Netscape code is "Embed". I've also found a javascript that will sort it out.
javascript.internet.com
Heather P (163)
93009 2002-10-25 19:38:00 > Netscape and IE use different code .
>
> The IE version is:
> <bgsound src="cowboys . mid" >

Does the music file have to be a . mid? or can it be any any othe filetype, e . g, . mp3 or . wav

thanks and cheers,
v . K----------------- :D
vk_dre (195)
93010 2002-10-25 19:53:00 Anything I think. Just keep the file size down. If you have a 1Mg track then visitors will be gone before it's finished loading and never hear it.

Something small and catchy played in a loop often works best.

Try linking a file on your hard drive and see how it works. Once you've had a play and know the code works move the file you want to your website folder and link that. Test it by uploading to the server and note the time taken to play. Then come back and edit it to a smaller size.
Heather P (163)
93011 2002-10-26 01:28:00 ok, will do Heather, thanks. Very much apreciated. vk_dre (195)
93012 2002-10-26 01:36:00 its very cheesy imho honest opinion, i think ive only seen one site that pulled it off very well, but they had other things that backed it up like flash, etc (well, i guess its not the same as what your doing since the track was part of the flash movie, but im sure its not)

http://cmart.design.ru/

grtz sal.
tga
sal (67)
1