Results 1 to 3 of 3

Thread: sound

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2005
    Location
    Atlanta, GA
    Posts
    7

    Default sound

    hi, what the html code for cont. play of a "mid" song file. i've already
    uploaded the file.

  2. #2
    Join Date
    Mar 2005
    Posts
    408

    Default

    It simple.....

    You can use:
    The embed html below is the example html code for the embed tag
    <embed src="soundfile.mid" hidden="false" border="0" width="310" height="45" autostart="true" autoplay="true" loop="true" volume="75%">
    use the example html source code above to play audio on your webpage, here's a break down of the example html source code

    How the embed attributes work

    src="soundfile.mid" the url of the file(src="http://www.whatever.com/soundfile.mid")

    hidden="false" shows the controls

    hidden="true" hides the controls


    width="310" height="45"
    the dimensions of the control measured in pixels, play around with these

    autostart="true"autoplay="true" if set to true play automatically on load
    autostart="false" autoplay="false" if set to false do not play

    loop="true" if false play once only, if true repeat constantly

    volume="75%" set the volume as a percentage


    AND it work with other files as well....for example below for MP3....

    Copy and paste this code into either the Header & Body or the Footer. It does not matter:

    HTML
    <embed src="http://www.yoursite.com/your_file.mp3" autoplay="true" loop="false" hidden="false" volume="100"></embed>
    autoplay - Automatic Play, use TRUE to enable it, use FALSE to disable it
    loop - this tells it to play over and over again, FALSE makes it disabled, a specific number like 2 would repeat it 2 times
    hidden - use TRUE to hide it, use FALSE so that it shows up
    volume - the default volume, 0 is nothing, 1 is some volume, 50 is half, and 100 is full. You can use any other number you wish.

    You can use most types of audio and video files. Here are some examples:
    .mp3
    .m3u
    .mpg
    .mpeg
    .mpe
    .wma
    .wmv
    .wav


    NOTE: The file MUST be uploaded somewhere in order to work.

    Good luck !

  3. #3
    Join Date
    Feb 2005
    Location
    Atlanta, GA
    Posts
    7

    Default

    thanks, i got it working. Unfortunately though not on mozilla firefox, only on IE.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •