Inserting MP3 into Valid HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fleemo

    Inserting MP3 into Valid HTML

    I'm looking for a simple way to insert an MP3 file in the body of an
    HTML page. The code below works, but it doesn't validate due to the
    embed tag. Is there a way to rewrite the code so that it will validate
    as either valid HTML, or better yet, XHTML?


    <script>
    function EvalSound(sound obj) {
    var thissound=docum ent.getElementB yId(soundobj);
    thissound.Play( );
    }
    </script>

    <embed src="MY_SOUND.m p3" autostart="Fals e" width="0" height="0"
    id="sound1"
    enablejavascrip t="true">

    <form>
    <input type="button" value="Play Sound" onClick="EvalSo und('sound1')">
    </form>
  • dorayme

    #2
    Re: Inserting MP3 into Valid HTML

    In article
    <4f71e9d1-0028-46d3-9ce5-ce157290fd4e@25 g2000prz.google groups.com>,
    Fleemo <fleemo17@comca st.netwrote:
    I'm looking for a simple way to insert an MP3 file in the body of an
    HTML page. The code below works, but it doesn't validate due to the
    embed tag. Is there a way to rewrite the code so that it will validate
    as either valid HTML, or better yet, XHTML?
    >
    >
    <script>
    function EvalSound(sound obj) {
    var thissound=docum ent.getElementB yId(soundobj);
    thissound.Play( );
    }
    </script>
    >
    <embed src="MY_SOUND.m p3" autostart="Fals e" width="0" height="0"
    id="sound1"
    enablejavascrip t="true">
    >
    <form>
    <input type="button" value="Play Sound" onClick="EvalSo und('sound1')">
    </form>
    Consider

    <a href="thisSound .mp3">This sound</a>

    It is liberating for you because it is so simple. It is great for users
    because they or their browsers can then do what they want with it when
    they want.

    --
    dorayme

    Comment

    • zwsdotcom@gmail.com

      #3
      Re: Inserting MP3 into Valid HTML

      On Sep 24, 8:46 pm, dorayme <doraymeRidT... @optusnet.com.a uwrote:
      In article
      <4f71e9d1-0028-46d3-9ce5-ce157290f...@25 g2000prz.google groups.com>,
      >
      >
      >
       Fleemo <fleem...@comca st.netwrote:
      I'm looking for a simple way to insert an MP3 file in the body of an
      HTML page. The code below works, but it doesn't validate due to the
      embed tag. Is there a way to rewrite the code so that it will validate
      as either valid HTML, or better yet, XHTML?
      >
      <script>
      function EvalSound(sound obj) {
        var thissound=docum ent.getElementB yId(soundobj);
        thissound.Play( );
      }
      </script>
      >
      <embed src="MY_SOUND.m p3" autostart="Fals e" width="0" height="0"
      id="sound1"
      enablejavascrip t="true">
      >
      <form>
      <input type="button" value="Play Sound" onClick="EvalSo und('sound1')">
      </form>
      >
      Consider
      >
         <a href="thisSound .mp3">This sound</a>
      >
      It is liberating for you because it is so simple. It is great for users
      because they or their browsers can then do what they want with it when
      they want.
      Amen brother. People who build pages with background music will be
      first up against the wall when the revolution comes.

      Comment

      • dorayme

        #4
        Re: Inserting MP3 into Valid HTML

        In article
        <cca15e36-6606-4910-9c66-9840f552af79@f3 6g2000hsa.googl egroups.com>,
        zwsdotcom@gmail .com wrote:
        On Sep 24, 8:46 pm, dorayme <doraymeRidT... @optusnet.com.a uwrote:
        In article
        <4f71e9d1-0028-46d3-9ce5-ce157290f...@25 g2000prz.google groups.com>,
        Consider

           <a href="thisSound .mp3">This sound</a>

        It is liberating for you because it is so simple. It is great for users
        because they or their browsers can then do what they want with it when
        they want.
        >
        Amen brother. People who build pages with background music will be
        first up against the wall when the revolution comes.
        The sheer crying shame of it all, comrade, is that this will tend to
        wipe out all those who do not own the means of production. It is the
        factory workers desperately trying to be heard above the clatter of the
        machinery that tend to do most of the embedding. Their leaders also
        might wish to make unwelcome noise in the big houses. I have seen these
        leaders meet and plan, and I have seen their motto:

        autostart="true "/autoloud:"veryl oud"

        --
        dorayme

        Comment

        • Fleemo

          #5
          Re: Inserting MP3 into Valid HTML

          >Consider
          <a href="thisSound .mp3">This sound</a<

          Thanks for the response, but the audio needs to be embedded on the
          same page, it can't pop open another browser window.

          Comment

          • dorayme

            #6
            Re: Inserting MP3 into Valid HTML

            In article
            <ca81eef4-d6b8-430c-a936-471b4750fcb6@x1 6g2000prn.googl egroups.com>,
            Fleemo <fleemo17@comca st.netwrote:
            Consider
            <a href="thisSound .mp3">This sound</a<
            >
            Thanks for the response, but the audio needs to be embedded on the
            same page, it can't pop open another browser window.
            What has "Consider <a href="thisSound .mp3">This sound</a>" got to do
            with "... it can't pop open another browser window".

            Please quote who you are replying to. Many people here are not using
            Google Groups.

            --
            dorayme

            Comment

            • Fleemo

              #7
              Re: Inserting MP3 into Valid HTML

              What has "Consider <a href="thisSound .mp3">This sound</a>" got to
              do
              with "... it can't pop open another browser window".
              >
              Please quote who you are replying to. Many people here are not using
              Google Groups.
              Dorayme, I'm quoting you. As far as I can tell, using the simple
              method you suggested results in the user being taken to a different
              page. I need the audio to play on the same page as the trigger, be it
              a link or a button.

              Comment

              • Jim Morrison

                #8
                Re: Inserting MP3 into Valid HTML

                I'm looking for a simple way to insert an MP3 file in the body of an
                HTML page. The code below works, but it doesn't validate due to the
                embed tag. Is there a way to rewrite the code so that it will validate
                as either valid HTML, or better yet, XHTML?
                You can insert mp3 very easy without programming knowledge. Look at:




                Comment

                • prac

                  #9
                  Re: Inserting MP3 into Valid HTML

                  More informations

                  Depuis 1893, Schenk partage sa passion du vin. Découvrez notre grande sélection de crus exceptionnels: Chasselas de domaines réputés, Chardonnay, Pinot Noir, Humagne, Gamay, Syrah, etc.


                  I hope this will give you some ideas


                  ---

                  Depuis 1893, Schenk partage sa passion du vin. Découvrez notre grande sélection de crus exceptionnels: Chasselas de domaines réputés, Chardonnay, Pinot Noir, Humagne, Gamay, Syrah, etc.


                  ---

                  Comment

                  Working...