embedded background sound on webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Joe2Shoe
    New Member
    • Sep 2007
    • 4

    embedded background sound on webpage

    Is this the correct script to enable background sound on a webpage?
    It works both in IE and Firefox, but is there a better way?

    <EMBED src="country.mi d" hidden="true" LOOP="TRUE" AUTOSTART="TRUE ">

    Thank you for your assistance,
    Joe
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    Originally posted by Joe2Shoe
    Is this the correct script to enable background sound on a webpage?
    It works both in IE and Firefox, but is there a better way?

    <EMBED src="country.mi d" hidden="true" LOOP="TRUE" AUTOSTART="TRUE ">

    Thank you for your assistance,
    Joe
    Sup Joe2Shoe, Welcome to TSDN!

    Please use the proper code tags when you post code.

    Well I'm not really sure, I've asked a similar question on the JavaScript forum , do to the fact that I wan't my HTML document to have only the basic structure in it, and not each page with 1000+ lines of code.( In other words anything thats not HTML is going to external documents). So if any one replies to me ( THE CLOCKS TICKING PEOPLE!!!!!! jk ) we'll both have our answers.


    Thanks, Death

    PS - yea using the "embed" tag should do the trick.

    Comment

    • Death Slaught
      Top Contributor
      • Aug 2007
      • 1137

      #3
      I forgot about this one:

      Code:
      <bgsound src="location" />
      The only broblem with it is that it's only supported in IE ( Internet Explorer).

      - Death

      Comment

      • Joe2Shoe
        New Member
        • Sep 2007
        • 4

        #4
        Death,
        "Please use the proper code tags when you post code."

        What's this mean?
        I'm new here, and write code using notepad+.
        I don't know too much.
        Thanks,
        Joe

        Comment

        • Joe2Shoe
          New Member
          • Sep 2007
          • 4

          #5
          Death,
          You're right, that one only works in IE. I'll stick with the original one I posted, until I can find one that works mo betta.
          Thanks,
          Joe

          Comment

          • Joe2Shoe
            New Member
            • Sep 2007
            • 4

            #6
            Death,
            Oh, now I see:
            Use CODE tags around your code:
            Code:
            ..code goes here..
            Thanks,
            Joe

            Comment

            • Death Slaught
              Top Contributor
              • Aug 2007
              • 1137

              #7
              Originally posted by Joe2Shoe
              Death,
              "Please use the proper code tags when you post code."

              What's this mean?
              I'm new here, and write code using notepad+.
              I don't know too much.
              Thanks,
              Joe
              Lol it meens that if your using HTML you need to highlight it and click the "<>" button, same if your using PHP, except you would click the piece of paper that says PHP, and anything else click the "#" button.

              - Death

              Comment

              • Death Slaught
                Top Contributor
                • Aug 2007
                • 1137

                #8
                Here's a good link that has tutorials on alot of the languages.

                - Death

                Comment

                • drhowarddrfine
                  Recognized Expert Expert
                  • Sep 2006
                  • 7434

                  #9
                  I'm paused in a meeting but you shouldn't use <embed>. Actually, there is no such thing. Microsoft made it up years ago, most browsers work with it (sort of), but all will tell you to use the <object> element. <embed> causes too many problems.

                  Comment

                  Working...