none
Adding Audio File To Web Site Home Page RRS feed

  • Question

  • I am using MS Expression Web, Version 4, SP 2.

    I would like to add music that will automatically play, one cycle, upon opening my web site.  The song is in .mp3 format.

    The EW Help User Guide says to: right click on the page and then on the general tab, click on page properties.

    The next step is to click the browse button on background sound.

    BUT, when I go looking for the song, or any other music on my computer, it says "no items match your search".

    Is there any help out there for this novice web designer, that does not include a lot of technical jargon and coding???

    Thanks

    Friday, November 2, 2012 8:09 PM

All replies

  • The best help I could be to a novice is to tell you not to do that. Ever.

    Nobody--nobody--wants your website to play audio without asking for it...

    They may be listening to their own music.

    They may be listening to a podcast.

    They may be in an office cubicle and not want to announce to the world that they have gone to your site.

    They may be home in a room where someone else is sleeping or watching TV.

    Their speakers may be off.

    Have you not noticed that websites don't do this any more? If you want audio to play when someone requests it by pressing a button, that's different. That's okay. But nothing will drive visitors away from your site faster than your hijacking their speakers/headphones without asking permssion first.


    How many SEO experts does it take to change a lightbulb lightbulbs buy light bulbs neon lights sex porn.

    Friday, November 2, 2012 8:46 PM
  • My website is actually my high school graduating class website and I'm sure that my classmates will really like to open up the home page and listen to our "alma mater".

    At any rate, I would like to give it a try and the feedback will determine whether or not I keep it.

    With that said, how can I go about doing this???

    Friday, November 2, 2012 9:13 PM
  • Thinking back - way, way back - to my high school days, and:  No, I would not want to be subjected to the high school alma mater when opening a high school site.

    Will your classmates be going to that page only once?  Imagine having to listen to it *every time* you visit.  And the same "don't do it" comments (other than, perhaps, that they might be working in a office) that Bill mentioned apply to your classmates, too.

    Give them a button to click, with whatever cheery inducements you can come up with to make them want to hear the alma mater, and let those who don't want to listen to it (again, or ever) not have to do so.

    Google "Play mp3 on website" for your options.

    Friday, November 2, 2012 11:00 PM
  • If the point hasn't been sufficiently brought home already, no professional Web developer is going to advise you to implement anything that autoplays as soon as the visitor arrives. It is amateurish, ill-advised, and regularly falls into the the top ten lists of "Web sites that suck" that you will find on the Web. It is a Very Bad Idea, and only novices with no idea what they're doing think it's kewl.

    If you insist on doing so despite the advice of professionals who know better, look it up on Google.


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.

    Saturday, November 3, 2012 1:06 AM
  • BGSound is deprecated and not all browsers will honor it - thank gawd because it is very, very bad practice to force sound on your visitors with no warning.  You can use:

    <a href="youraudio.mp3">Play Sound</a>
    <script src="http://mediaplayer.yahoo.com/js"></script>

    Which will give you a "play" button for your audio.

    Frankly, I'd be unhappy if my high school alma mater started playing the minute I landed on a class website. You do not know where they will be visiting from - work, home with a sleeping baby/spouse, wifi hot spot. It is only courteous to give people the option to decide for themselves if they want to sound or not.

    Free Expression Web Tutorials
    For an Expression Web forum with without the posting issues try expressionwebforum.com

    Saturday, November 3, 2012 2:18 AM
  • Now that I have all the professional advice as to why I should not do what I am trying to do,

    I still don't have the answer to my question, which is:

    Why won't MS EW 4 SP2 load an audio file into a web page after following the instructions contained therein???

    If I am able to proceed after I get an answer to my question, it will not result in an irreversible catastrophe!!

    I will get plenty of feedback from my 70+ year old classmates, from which I can proceed accordingly.

    Saturday, November 3, 2012 1:06 PM
  • First, have you imported the mp3 file to a location "inside" your website?
    If so, then link to it using the script that Cheryl provided in her reply.

    Expression Web MVP


    Saturday, November 3, 2012 1:10 PM
  • Of course you don't have an answer to that question.  You just asked it.  You have answers to your first question. :)

    "Why won't MS EW 4 SP2 load an audio file into a web page after following the instructions contained therein???"

    Answer three questions:  Which instructions?  How are you testing it?  (EW won't load an audio file.  A browser will, and EW is not a browser.)  Where is your mp3 located?


    • Edited by KathyW2 Saturday, November 3, 2012 2:16 PM
    Saturday, November 3, 2012 1:22 PM
  • First, you were given a method to put your music on your website in my previous answer that will work with any browser.

    Second, your audio file isn't a wav file - that is the only format supported by bgsound. This is not an EW question but an HTML issue.


    Free Expression Web Tutorials
    For an Expression Web forum with without the posting issues try expressionwebforum.com


    Saturday, November 3, 2012 2:37 PM
  • With regard to Cheryl's guidance:

    <a href="youraudio.mp3">Play Sound</a>
    <script src="http://mediaplayer.yahoo.com/js"></script>

    How do I get that code stuff into my website??

    My original item said my music was in .mp3 format.

    Steve asked: have you imported the mp3 file to a location "inside" your website?  How do I do that???

    HERE ARE THE INSTUCTIONS RIGHT OUT OF THE EW USER GUIDE

    Sounds can add an extra dimension to your site. For example, if your company has an audio jingle, you can add it to the home page of your site and configure it to play when a site visitor browses to it.

    With Microsoft Expression Web, you can embed an audio file and set properties to play when site visitors open the page. You can set the properties to play the sound file continuously, or to play it a specified number of times. Another way to add sound to your web page is to provide a hyperlink to the audio file from your page and let site visitors decide if they want to play the sound. When site visitors click that link, an appropriate audio player opens and plays the sound file.

    To add a sound

    1. In Design view, right-click the page, and then click Page Properties.
    2. In the Page Properties dialog box, on the General tab, under Background sound, locate and click the sound file you want, and then clickOpen.
    3. Do one of the following:
      • To play the sound continuously, select the Forever check box.
      • To play the sound a fixed number of times, clear the Forever check box, and then select or type the number of times you want the sound to play in the Loop box.

    Note

    Adding a sound adds a <bgsound> tag to the header of your page. This feature is not supported by Netscape or Mozilla Firefox browsers.


    Saturday, November 3, 2012 3:16 PM
  • You are mixing apples and oranges.

    Those instructions you quoted have nothing to do with the advice you were given.  Those instructions are for .wav files, bgsound (not supported in modern browsers, many of which your visiters are using) - in other words, those instructions to not apply to your sound file, and are wrong for modern browsers.  Ignore those obsolete (old FrontPage era stuff) instructions that should have been removed from EW by now.

    Follow Cheryl's instructions.

    You put the code in your page (in Code View) where you want the "Play Sound" link to show up.

    You import the sound file into your website by putting the file inside your website folder on your PC (either by using EW's file-> import, or just moving it there as you would move any other file on your PC) - and reference it correctly in the link Cheryl showed you.



    • Edited by KathyW2 Saturday, November 3, 2012 6:38 PM
    Saturday, November 3, 2012 3:29 PM
  • Now that I have all the professional advice as to why I should not do what I am trying to do,

    I still don't have the answer to my question, which is:

    Why won't MS EW 4 SP2 load an audio file into a web page after following the instructions contained therein???

    If I am able to proceed after I get an answer to my question, it will not result in an irreversible catastrophe!!

    I will get plenty of feedback from my 70+ year old classmates, from which I can proceed accordingly.

    This is a bit like going to a gun users forum and asking why your Colt-45 is miss firing when you're trying to shoot yourself in the head. Not surprisingly some are advising to not do that.
    Saturday, November 3, 2012 7:22 PM
  • You can't do it in design view.

    You will have to work in code view.

    Those instructions do not work in all modern browsers.

    You need to learn at least enough about Web development to understand instructions when they are given to you, such as insuring that the sound file is located within the site, and that the sound file's format is compatible with the command you wish to use.

    Be sure to provide a link where your visitors can contact you to advise you how much music playing unbidden really sucks. Otherwise, you'll never know how many people you're really pissing off.


    Please remember to "Mark as Answer" the responses that resolved your issue. It is common courtesy to recognize those who have helped you, and it also makes it easier for visitors to find the resolution later.

    Saturday, November 3, 2012 7:51 PM
  • Hmm, the instructions you quote says it won't work in Netscape, Firefox and you can add Opera and webkit based browsers (Chrome & Safari) but you still insist that people explain to you why it isn't working.

    We explained - bgsound is a deprecated left over basically old version of Internet Explorer only bad practice thing that is there possibly for backwards compatibility for people who used FrontPage to create a site 10 years ago.

    I gave you a piece of code you would paste into code view and substitute the name of your mp3 file. Other than changing the file name and path to the one you want to use there is nothing required to use it.  If you can't figure it out from the information provided then you have a couple of options. Hire someone or spend time with the learning resources section of this forum's FAQ. Expression Web is a professional level web design/development tool. It is not a click, click, click. You are expected to know basic html and css to use it. That is why there is a learning resources section in the FAQ.  Since you are willing to use the help file (something few people do so that's kudos to you even if in this case it provided very bad practice and apparently left out the restriction to wav files) spend time with the tutorials in the FAQ.


    Free Expression Web Tutorials
    For an Expression Web forum with without the posting issues try expressionwebforum.com

    Saturday, November 3, 2012 8:25 PM
  • Thanks to Cheryl D Wise for the code, and especially to KathyW2 for the specific help in how to install the code and audio file,

    I was able to get the music onto our website home page.

    Everybody loves it....But what do we know!!!

    I am very surprised and rather disappointed in the myriad of condescending remarks that I received pursuant to my original item.

    Monday, November 5, 2012 2:12 PM
  • Nobody said not to put it on the site, just to not have it auto play. Give people the choice and everyone is happy. Force it on them and people complain, its human nature.

    Condescending isn't what happened, you were informed of best practices by people who have been doing this for well decades. My first website was created to keep in contact a bunch of pregnant friends around the country. That kid is in university now and almost 20 years old.

    Just think about how few sites other than entertainment sites that launch audio when you go to the page, not very many are there?


    Free Expression Web Tutorials
    For an Expression Web forum with without the posting issues try expressionwebforum.com

    Tuesday, November 6, 2012 2:34 PM