Donate SIGN UP

MS Publisher website and background sound

Avatar Image
Coldicote | 15:08 Tue 01st Jun 2010 | Technology
7 Answers
I have a website created with MS Publisher and would like to add background, but cannot make it work. MS publisher instructions refer to Tools, Web Page Options - Background Sound etc., and browsing to find the relevant MIDI file. It then says click OPEN, but there is no Open to click, so I continue and click OK. It all looks straight forward, but when viewed in a browser there is no sound. I've tried uploading to the web and can see the MIDI is there among the index files, but why doesn't it play? Any help much appreciated.
Gravatar

Answers

1 to 7 of 7rss feed

Best Answer

No best answer has yet been selected by Coldicote. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
I would urge you NOT to include a MIDI playing in the background. Those sites quickly become annoying. If you MUST have one, edit your HTML and put this in the HEAD section of your webpage:

<embed src="midifilename.mid">
<noembed> <bgsound src="midifilename.mid"> </noembed>

But I urge you not to do it. You will drive your visitors away.
Question Author
I take your point Squarebear. I do however have a few pages comprising just song words and sound, hopefully for senior citizens' sing-alongs. MIDI music can be downloaded separately, but as it is only for one page at a time I thought I would try background sound. Perhaps you would like to have a look at
http://www.skeef.freeserve.co.uk/lindenlea
I'll have a closer look at the references you have given, thank you.
Let me get to my computer with sound and I will try to sort it for you.
Ok I found a better way to do it with a piece of javascript. I've uploaded it here:
http://www.square-bea.../lindenlea/linden.htm

Basically, I just added this to the bottom.

<SCRIPT language="JavaScript">
if (navigator.appName == "Netscape" && navigator.appVersion.indexOf("Win") > 0)
{
document.writeln("<embed type=application/x-mplayer2 pluginspage=http://www.microsoft.com/Windows/
MediaPlayer/
Name=MediaPlayer src=lindenlea.mid AutoStart=True ShowStatusBar=0 HEIGHT=27 WIDTH=80></embed>");
}
else if (navigator.appVersion.indexOf("Win") > 0)
document.writeln("<BGSOUND SRC=lindenlea.mid LOOP=INFINITE>");
else
document.write( '<embed src = "lndenlea.mid" autostart="true" hidden="true" loop="true" ></embed>' );
</SCRIPT>

I also rewrote your webpage to make it over 85% smaller. Publisher is known for adding tons and tons unnecessary code and isn't really ideal for writing web pages.
The last lndenlea.mid should of course say lindenlea.mid
Question Author
Squarebear, thank you very much for your time and trouble - must say I envy you your knowledge and skill. Publisher is the only web programme I have ever used, since learning about it at evening classes, and I'm thinking it was not the best one to start with. I'll go to work on the advice you have given and again - many thanks.
No problem. Please post back if you need further help.

1 to 7 of 7rss feed

Do you know the answer?

MS Publisher website and background sound

Answer Question >>