Another question on referencing sound clips

Discussion in 'Software' started by a.jenery, Dec 5, 2005.

  1. a.jenery

    a.jenery Private E-2

    Hi...

    I've already asked a question similar to this, but the solution didn't seem to work, lol...

    I still need to know what is the standard line of html code for playing a .wav file upon the home page loading, that is automatically 'in the background' without the QuickTime logo (or any media player logo) being visibly presented to the visitor.

    This is what happened last time, which is no good.

    The .wav file would be held in the same directory as the index.htm file.

    Also, where exactly do I put this tag? Anywhere between the two head tags, or title tags..?

    Any help appreciated
     
  2. Coco

    Coco Sergeant Major

    A very simple way is to use the embed tag. An example to do what you want is below. The wav file doesn't have to be in the same folder, it can be whereever you want.

    EMBED SRC="sound.wav" AUTOSTART="true" HIDDEN="true" LOOP="true" WIDTH="145" HEIGHT="60"
     
  3. a.jenery

    a.jenery Private E-2

    Thanks for your help

    I did try an an embed tag found on a url quoted to me, which is the one below; almost identical to the one you give, but with the 'file.wav' following a file path; again, for some reason it didn't work even though I checked that the path was correct.

    All I got was the QuickTime logo displayed when I tested the page in Dreamweaver's browser view.

    This is the one I tried to use:

    <EMBED SRC="../graphics/sounds/helloo.wav" AUTOSTART=TRUE WIDTH=144 HEIGHT=60>

    ( '../graphics/sounds' was of course substituted with the actual file path...)

    So I'll try your one instead,
    [ EMBED SRC="sound.wav" AUTOSTART="true" HIDDEN="true" LOOP="true" WIDTH="145" HEIGHT="60" ] though I don't know exactly where in the head or title tags to put it..?

    Also, should the code be in triangular brackets or not?

    Sorry to drag this out
     
  4. Coco

    Coco Sergeant Major

    It shouldn't be in the head at all, it should actually do anything if you place it in the head, but browers sort of do their own thing when you miscode something. It should be in the body. Everything should be in the body essentially. But this is an actual element of the page. Do not place it in the head.

    And yes it requires the brackets like all html tags. I simply didn't include them because forums can do weird things if you write them into a post.
     
  5. a.jenery

    a.jenery Private E-2

    Many thanks
     

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