Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Add Sound To A Website

  1. #1
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Add Sound To A Website

    I have a 5 second piece of sound which I want to play when my website loads, can I do this without Flash?

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    HTML Code:
    <bgsound src="src">
    ...to the head section of your page.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by tech_support
    HTML Code:
    <bgsound src="src">
    ...to the head section of your page.
    Will it just load? Do I need to do any kind or pre loading?

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Will it just load?
    Yep.

    Do I need to do any kind or pre loading?
    Nope.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  5. #5
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by tech_support
    Yep.



    Nope.
    Cool! Also what filetype I have all three... wav, mp3, aif

  6. #6
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Only wav.

    For all other file types, you'll need to embed. Here's the code:

    HTML Code:
    <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer">
    	<param name="URL" value="source here">
    	<param name="rate" value="1">
    	<param name="balance" value="0">
    	<param name="currentPosition" value="0">
    	<param name="defaultFrame" value>
    	<param name="playCount" value="1">
    	<param name="autoStart" value="-1">
    	<param name="currentMarker" value="0">
    	<param name="invokeURLs" value="-1">
    	<param name="baseURL" value>
    	<param name="volume" value="50">
    	<param name="mute" value="0">
    	<param name="uiMode" value="invisible">
    	<param name="stretchToFit" value="0">
    	<param name="windowlessVideo" value="0">
    	<param name="enabled" value="-1">
    	<param name="enableContextMenu" value="-1">
    	<param name="fullScreen" value="0">
    	<param name="SAMIStyle" value>
    	<param name="SAMILang" value>
    	<param name="SAMIFilename" value>
    	<param name="captioningID" value>
    	<param name="enableErrorDialogs" value="0">
    </object>
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  7. #7
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by tech_support
    Only wav.

    For all other file types, you'll need to embed. Here's the code:

    HTML Code:
    <object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="WindowsMediaPlayer">
    	<param name="URL" value="source here">
    	<param name="rate" value="1">
    	<param name="balance" value="0">
    	<param name="currentPosition" value="0">
    	<param name="defaultFrame" value>
    	<param name="playCount" value="1">
    	<param name="autoStart" value="-1">
    	<param name="currentMarker" value="0">
    	<param name="invokeURLs" value="-1">
    	<param name="baseURL" value>
    	<param name="volume" value="50">
    	<param name="mute" value="0">
    	<param name="uiMode" value="invisible">
    	<param name="stretchToFit" value="0">
    	<param name="windowlessVideo" value="0">
    	<param name="enabled" value="-1">
    	<param name="enableContextMenu" value="-1">
    	<param name="fullScreen" value="0">
    	<param name="SAMIStyle" value>
    	<param name="SAMILang" value>
    	<param name="SAMIFilename" value>
    	<param name="captioningID" value>
    	<param name="enableErrorDialogs" value="0">
    </object>
    Hmm doesn't play in Safari any ideas?

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    windows media player won't work for mac/linux.

    I don't think wmp is for linux... correct me if I'm wrong.

    you can install it for mac, but it's hard to find and most (almost all) mac users don't have it.

    Quicktime is more standard, and usually on most PCs, comes standard with mac and available for linux.
    However, that is mac proprietary, so while better, not perfect.


    I guess I've just narrowed it down to there not being a very compatible solution. Heh. Oops
    (But it's true....)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  9. #9
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    You'll need Windows Media Player to play it. I'm assuming your on a Mac right?

    Then install the Windows Media Player for Mac.

    (Sorry, replied at the same time djr33!)
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  10. #10
    Join Date
    Apr 2006
    Posts
    584
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by djr33
    windows media player won't work for mac/linux.

    I don't think wmp is for linux... correct me if I'm wrong.

    you can install it for mac, but it's hard to find and most (almost all) mac users don't have it.

    Quicktime is more standard, and usually on most PCs, comes standard with mac and available for linux.
    However, that is mac proprietary, so while better, not perfect.


    I guess I've just narrowed it down to there not being a very compatible solution. Heh. Oops
    (But it's true....)
    But when I test it in Internet Explorer on the Mac it plays... Can I make it an mp3 then so it will play on everones compuetr?

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
  •