How do I get a song to play in HTML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mattz
    Confirmed User
    • Dec 2001
    • 7697

    #1

    How do I get a song to play in HTML?

    Hey,

    How do I get a song to play in the backround of an html page? Anyone have the code?
  • TeenCat
    Too lazy to set a koala
    • Jan 2007
    • 16139

    #2
    maybe you can use flash for that, try search google for "flash jukebox sample" or something similar. next way is mid file, but i highly not recommend it cause the music is always so loud. hope that helps

    6bot
    / Coming again very soon!
    Svit Zlin Radio 24/7!

    Comment

    • mattz
      Confirmed User
      • Dec 2001
      • 7697

      #3
      hmm I'll look into that

      Comment

      • StuartD
        Sofa King Band
        • Jul 2002
        • 29903

        #4
        Check out the <embed> tag.
        This is me on facebook
        This is me on twitter

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          <embed src=song.mp3 autoplay=true autolooop=true width=0 height=0>
          hatisblack at yahoo.com

          Comment

          • rotterdammer
            Confirmed User
            • Feb 2006
            • 1523

            #6
            Originally posted by SmokeyTheBear
            <embed src=song.mp3 autoplay=true autolooop=true width=0 height=0>

            good one, needed that too thanks

            Comment

            • SmokeyTheBear
              ►SouthOfHeaven
              • Jun 2004
              • 28609

              #7
              but thats kind of ghey as if the user doesnt want the music they have no choice but to close or turn sound down.

              You should do it in flash
              hatisblack at yahoo.com

              Comment

              • SmokeyTheBear
                ►SouthOfHeaven
                • Jun 2004
                • 28609

                #8
                p.s. i think its loop=true not autoloop=true
                or playcount=99
                hatisblack at yahoo.com

                Comment

                • SmokeyTheBear
                  ►SouthOfHeaven
                  • Jun 2004
                  • 28609

                  #9
                  ill create you a cool one in flash for free if you want..
                  hatisblack at yahoo.com

                  Comment

                  • TeenCat
                    Too lazy to set a koala
                    • Jan 2007
                    • 16139

                    #10
                    Originally posted by SmokeyTheBear
                    ill create you a cool one in flash for free if you want..
                    great offer from bear mattz, take this one, you will not find anything better!

                    6bot
                    / Coming again very soon!
                    Svit Zlin Radio 24/7!

                    Comment

                    • SmokeyTheBear
                      ►SouthOfHeaven
                      • Jun 2004
                      • 28609

                      #11
                      it will load dynamic mp3's heres an example http://smokeycash.com/mat/

                      you download the swf http://smokeycash.com/mat/mat.swf then place it in a directory with 10 mp3's named track01.mp3 thru track10.mp3

                      the demo i made just has 1 track in the directory so only #1 will work..

                      p.s. it streams the mp3 so it will play before it finished downloading
                      hatisblack at yahoo.com

                      Comment

                      • SmokeyTheBear
                        ►SouthOfHeaven
                        • Jun 2004
                        • 28609

                        #12
                        you can drag the mp3 player around the window but in the demo i just placed it in a tiny movie so it doesnt drag far depending on how you were going to use it you would make the flash the size of the window then put it on an overlay so users could drag the mp3 player around..
                        hatisblack at yahoo.com

                        Comment

                        • SmokeyTheBear
                          ►SouthOfHeaven
                          • Jun 2004
                          • 28609

                          #13
                          i just updated the demo so you can see how it would be used on a page (like in context )
                          hatisblack at yahoo.com

                          Comment

                          • SmokeyTheBear
                            ►SouthOfHeaven
                            • Jun 2004
                            • 28609

                            #14
                            dont use it yet though if you want to use it let me know and ill make it a little more custom
                            hatisblack at yahoo.com

                            Comment

                            Working...