View Full Version : BGSOUND preloader
Khaled
03-21-2006, 06:21 PM
Welcome all...
I made a web page have BGSOUND music.
The problem is that sound is loading lately.
Can I load sound first then load web page contents ?
Thank you for help.
limshady411
03-21-2006, 07:39 PM
I think they load in at the same time. Is your sound file quite large?
limshady411
03-21-2006, 07:43 PM
I found this:
<EMBED NAME="mySound" SRC="mySound.mid"
LOOP=FALSE AUTOSTART=FALSE HIDDEN=TRUE MASTERSOUND>
These links may help:
http://www.javascripter.net/faq/sound/preload.htm (http://www.javascripter.net/faq/sound/preload.htm)
http://www.webreference.com/js/column20/embed.html
oldcrazylegs
03-21-2006, 10:16 PM
Actually you are better off to load the music file last. This way your visitor can be reading your content and looking at your images while the slow loading music file is being loaded in. This can be quite a problem when your visitor is using a 56kb dialup connection. If they get bored waiting for it to load they are gone and you wasted your time writing your page. I suggest you make the controls show on your page and do not autostart the music. Best to let them choose if they want to hear it or not.
You can force the music file to load last by placing the code at the very bottom of your HTML source code. Like below. Using a preloader is nonsense. :)
Read this page
http://dwight.clickthesky.com/internettips/embeddingmediainhtml.shtml
<embed src="file.mp3" />
</body>
</html>
limshady411
03-21-2006, 10:29 PM
I would agree. Load it last. :thumbsup:
Khaled
03-22-2006, 01:10 PM
Welcome all...
:thumbsup: Thank you very much for your replies.
But the problem that the page which I was taking about is an Flash Intro to my site and I want music to conntinue with other pages in the site, for this I can't put it in the SWF.
The site has been puplished at www.dealspub.com (http://www.dealspub.com)
I made home page in two frames upper frame contain BGSOUND and its height is 1px, and the lower frame contain whole site.
I would that this description is clear.
:) Thank you very much again:) .
felgall
03-22-2006, 08:43 PM
Don't force your visitors to listen to the music - many will not want to waste their time downloading it and will leave if your page loads too slowly. Attach it to a link on your page that they can select to start downloading it and it will then play automatically in the background regardless of what page they then visit.
oldcrazylegs
03-22-2006, 09:19 PM
You should never use an intro page. Your visitors and search engines hate them. All they are good for is slowing you down. You can do flash in the rest of the site if you want to. An intro page says, "Look at me I'm a newbie." Search engines have trouble crawling flash intro pages. All that will get indexed is the intro page of your site. But it's your site do what you want.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.