Incorporating Sound in Dreamweaver

Discussion in 'Software' started by bosstone75, Mar 29, 2004.

  1. bosstone75

    bosstone75 Private E-2

    Hello all!

    This is my first time posting to this site, so forgive and correct me if I make any mistakes.

    I'm working on a WebQuest for my students I work with. Since many of them can't read, I'd like to have the option of creating a website that they can click on little ears to hear the different blocks of text on the website. I've figured out how to link a sound to an image, but when they click on it... it opens another program to play the sound. I also know how to embed sounds, but I don't want these sounds to play automatically.

    What I want is the ability to have the sound play within the browser when the kids click on on an image. I realize I could set up my browser this way, but I want other people at other computers to view my website and I don't want them to have to make changes to their browser.

    Does anyone know how I could solve this little delimma?

    Thanks much to anyone who can offer advice!
    Bill
     
  2. bosstone75

    bosstone75 Private E-2

    Any answers?

    Does anyone know the answer to this or is there no good answer? OR is this the wrong place to post this message?

    Thanks in advance,
    Bill
     
  3. mr_flea

    mr_flea First Sergeant

    Here are 2 ways to embed it in the page. Both require Windows Media Player.

    To embed the file and play it with a small windows media toolbar:

    Code:
    <embed src="(*put the location of the file here!*)" autostart="false" hidden="false" loop="false"  width="144" height="46" controls="console"></embed>
    <noembed>Your browser does not support embedded files.</noembed>
    To embed the file and play it using JavaScript buttons (this only works if there is one sound on the page):

    Code:
    <embed src="(*put the location of the file here!*)" autostart="false" hidden="true" loop="false"  width="144" height="46" controls="console"></embed>
    <noembed>Your browser does not support embedded files.</noembed>
    <form name="playsound">
    <input type=button onclick="document.embeds[0].play()" value="Play">
    <input type=button onclick="document.embeds[0].stop()" value="Stop">
    </form>
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds