+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Oct 2002
    Posts
    256

    how to put sound on a web page

    i tried to put sound into a link in which the sound would automatically load and loop around forever.
    HTML Code:
    <embed src="funk1.wav" autostart="true" hidden="true" loop="true">
    here are the results:
    Opera: plays the sound file but does not loop
    Internet Explorer: does nothing
    Mozilla: prompts me what to do (download the file or play it) and if i say play it, it opens it in Winamp (default application for .wav files) so of course it will not loop around.

    what am i doing wrong?

  2. #2
    Member Dark_Raver's Avatar
    Join Date
    Sep 2001
    Location
    Not in a worm enough spot
    Posts
    231
    the problem is you are trying to play a looping sound in a web page...

    JK

    just to let you know nothing annoys ppl more than that exact thing.

    but if you really want to, than this link might help you out.
    http://www.webreference.com/js/column20/embed.html
    i would read it but youll know why i didn't as soon as you go there.

    DR
    Last edited by Dark_Raver; 03-04-2003 at 06:22 PM.

  3. #3
    Member
    Join Date
    Oct 2002
    Posts
    256
    that page you listed is just like the page i have - it plays in Opera but only once and doesn't play at all in IE.

    that didn't help at all lol

  4. #4
    ShawnD1, since the LOOP command does not work remove the Quotes from around TRUE.


    AUTOSTART also needs no Quotes around TRUE.

    Hope it helps. GL

  5. #5
    Ultimate Member DocEvi1's Avatar
    Join Date
    Dec 2001
    Location
    Newcastle Upon Tyne, UK
    Posts
    2,330
    Sound kills websites. You really should consider you audience - whenever I surf I have music playing (MP3) and it is often mixed with crappy midi songs - I don't appreciate it and it slows my net connection down. I usually leave the sites.

    stefan

  6. #6
    Member G-man632's Avatar
    Join Date
    Apr 2002
    Posts
    193
    <bgsound="funk1.wav" loop="-1">

    there itll loop forever and play in the background

  7. #7
    Member
    Join Date
    May 2002
    Posts
    140
    I agree with DocEvi1, dont do it. Period. And if you do, dont do it with just BGsound, at least you can stop it with the "Embed" tag.

  8. #8
    Member Spardan's Avatar
    Join Date
    Feb 2003
    Location
    Drunk and Disordered
    Posts
    221
    Sound kills websites. You really should consider you audience - whenever I surf I have music playing (MP3) and it is often mixed with crappy midi songs - I don't appreciate it and it slows my net connection down. I usually leave the sites.
    I also agree... go ahead if you must but a better site would at least give the user the option to turn off the music...

    Really it should be the end-user's choice whether they want to hear music or not without having to resort to turning off all sound output fro their box...

    plus, there's the factor of attracting people back to your site, the novelty of a continuous loop will wear off pretty quickly, especially if it's a page someone's gonna spend a lot of time on...

    ++Spardan++

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







New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke