37 users online (0 members and 37 guests)  


  Results 1 to 2 of 2

Related

  1. Adding a soundbyte with HTML...    Forum: HTML Forum
    Replies: 2
  2. Replies: 7
  3. Replies: 2
  4. Adding Sound to my website - WMP    Forum: HTML Forum
    Replies: 4
  1. #1
    Jhnirsch's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2009
    Posts
    1

    Exclamation adding sound to a Html web page

    I am a noob at makeing web pages. I want to add a .wav to my web page. I am useing notpad to make my page and I dont know what to do can some one please help me.

  2. #2
    Website Reaction's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2009
    Location
    Preston, Lancashire
    Posts
    2

    Re: adding sound to a Html web page

    Try adding this between <body> and </body> and changing "yourmusic.wav" to your file name.

    <SCRIPT TYPE="text/javascript">
    <!--
    var filename="yourmusic.wav";
    if (navigator.appName == "Microsoft Internet Explorer")
    document.writeln ('<BGSOUND SRC="' + filename + '">');
    else if (navigator.appName == "Netscape")
    document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
    // -->
    </SCRIPT>
    <NOSCRIPT>
    <BGSOUND SRC="yourmusic.wav">
    </NOSCRIPT>



Tags for this Thread