Controlling / Playing a music file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    Controlling / Playing a music file

    i need a music player on my site ive tried the embed tag but i cant ever get the music to play also i would like to have script that lets my users download a file but i know nothing about downloading script so im not asking for a script but help learning how to make one.

    Thanks, Death Slaught
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Changed thread title to better describe the problem (did you know that threads whose titles contain three words or less actually get FEWER responses?).

    Comment

    • johnhjohn
      New Member
      • Dec 2006
      • 43

      #3
      Here is an example of using the <embed> tag.
      Code:
      <embed src="your music file" autostart="false"></embed>
      You could also have music playing in the background:
      Code:
      <bgsound src="your music file" loop="3">

      Comment

      • Death Slaught
        Top Contributor
        • Aug 2007
        • 1137

        #4
        Originally posted by johnhjohn
        Here is an example of using the <embed> tag.
        Code:
        <embed src="your music file" autostart="false"></embed>
        You could also have music playing in the background:
        Code:
        <bgsound src="your music file" loop="3">
        thanks again it works perfectly as usual but do you know how to make it so they can download music or a file with music in it?

        Comment

        • johnhjohn
          New Member
          • Dec 2006
          • 43

          #5
          You could place the music files in a compressed file. All you would have to is link to the file:

          Code:
          <a href="yourmusicfiles.zip">Music Files</a>

          Comment

          • Death Slaught
            Top Contributor
            • Aug 2007
            • 1137

            #6
            Originally posted by johnhjohn
            You could place the music files in a compressed file. All you would have to is link to the file:

            Code:
            <a href="yourmusicfiles.zip">Music Files</a>
            thanks again man your awesome.

            Comment

            • johnhjohn
              New Member
              • Dec 2006
              • 43

              #7
              No problem. I'm glad I could help.

              In case you don't know:
              To put files into a zip file, select all of your music files and right click them. Hover over "send to" and select Compressed (zipped) Folder

              Comment

              • Death Slaught
                Top Contributor
                • Aug 2007
                • 1137

                #8
                Originally posted by johnhjohn
                No problem. I'm glad I could help.

                In case you don't know:
                To put files into a zip file, select all of your music files and right click them. Hover over "send to" and select Compressed (zipped) Folder
                yea i know i use winzip alot because every thing i do goes on a usb flash drive 4gb lol if i lost it i would be mortified.

                Comment

                • johnhjohn
                  New Member
                  • Dec 2006
                  • 43

                  #9
                  Lol yeah i was just making sure.

                  Comment

                  • Death Slaught
                    Top Contributor
                    • Aug 2007
                    • 1137

                    #10
                    so lol how do i make this work?
                    [code=html]
                    1 <html>
                    2 <form>
                    3 <input type="button" name=link value="link" onclick="<a href="http://thescripts.com" >
                    4 </form>
                    5 </html>[/code]

                    Comment

                    • pbmods
                      Recognized Expert Expert
                      • Apr 2007
                      • 5821

                      #11
                      Heya, Death.

                      Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.

                      Try this:
                      [code=html]
                      <input type="button" ... onclick="locati on.href = 'http://www.thescripts. com';" />
                      [/code]

                      Comment

                      • Death Slaught
                        Top Contributor
                        • Aug 2007
                        • 1137

                        #12
                        Originally posted by pbmods
                        Heya, Death.

                        Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.

                        Try this:
                        [code=html]
                        <input type="button" ... onclick="locati on.href = 'http://www.thescripts. com';" />
                        [/code]
                        o.o ok i will and thanks

                        Comment

                        Working...