.wav in html page

Discussion in 'Web Development & Web Hosting' started by Jakamoko, Aug 19, 2005.

  1. Jakamoko
    Honorary Member

    Jakamoko On the move again ...

    9,924
    74
    229
    Hey Troops,

    Anyone tell me how I can automatically have a short .wav sound play when a page is opened ? To be more specific, how would you code this into the html, and is it possible to do without getting a big face-full of Media Player (or whatever the person viewing it is using) ?

    Thanks in advance.
     
    Certifications: MCP, A+, Network+
    WIP: Clarity
  2. Boycie
    Honorary Member

    Boycie Senior Beer Tester

    6,281
    85
    174
    Dreamweaver. :biggrin

    [​IMG]
     
    Certifications: MCSA 2003, MCDST, A+, N+, CTT+, MCT
  3. Jakamoko
    Honorary Member

    Jakamoko On the move again ...

    9,924
    74
    229
    Cheers Boyce ( he says holding back on a witty, if not sarky response). :biggrin

    I'm using DW, but how would I insert the wav ? Is it in the code (i'm guessing it will need to be), as there isn;t an option under "insert".
     
    Certifications: MCP, A+, Network+
    WIP: Clarity
  4. simongrahamuk
    Honorary Member

    simongrahamuk Hmmmmmmm?

    6,205
    136
    199
    Not sure if it's quite what you're after but I've emailed you a powerpoint on inserting sound onto a web page to your nagana address.

    8)
     
  5. Jakamoko
    Honorary Member

    Jakamoko On the move again ...

    9,924
    74
    229
    Thanks Simon - checking now. :thumbleft

    Also found this info HERE
     
    Certifications: MCP, A+, Network+
    WIP: Clarity
  6. Jakamoko
    Honorary Member

    Jakamoko On the move again ...

    9,924
    74
    229
    Unfortunately, both the above still require a media player to open, and both also try to open the player from within the page (unless I'm way wide of the mark).

    Hmmm, am I now looking at the shockwave route for this then ? :hhhmmm
     
    Certifications: MCP, A+, Network+
    WIP: Clarity
  7. Rizwan

    Rizwan New Member

    3
    0
    1
    Try the following code:

    <html>

    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>New Page 1</title>
    <bgsound src="your music file name" loop="-1">
    </head>

    <body>

    </body>

    </html>
     
  8. Rizwan

    Rizwan New Member

    3
    0
    1
    Or simply


    <html>

    <head>
    <bgsound src="your music file name" loop="-1">
    </head>

    <body>

    </body>

    </html>
     
  9. Frontier

    Frontier Byte Poster

    105
    0
    14
    After the <body> tag
    <bgsound src="filename.wav" loop="infinate"> :biggrin
     
  10. Jakamoko
    Honorary Member

    Jakamoko On the move again ...

    9,924
    74
    229
    I don't want a loop - just a one-off run of the .wav. Can I just ommit the loop option, or set it to zero ?
     
    Certifications: MCP, A+, Network+
    WIP: Clarity
  11. Bluerinse
    Honorary Member

    Bluerinse Exabyte Poster

    8,878
    181
    256
    Jak, why do you want a wav file in a web page? wav files are uncompressed and hence large by nature and the art of creating a web page, apart from the arty design, is to make sure the pages load quickly, especially for dial up users. Most sounds on web pages are MIDI files because they are soooo small in comparison to wav sounds.

    Just wondering :rolleyes:

    Pete
     
    Certifications: C&G Electronics - MCSA (W2K) MCSE (W2K)
  12. JonnyMX

    JonnyMX Petabyte Poster

    5,257
    220
    236
    I've done this before by dropping it into an 'invisible' Flash movie. The only problem with that is if a visitor doesn't have flash player installed and they wonder what the hell is going on.
     
    Certifications: MCT, MCTS, i-Net+, CIW CI, Prince2, MSP, MCSD
  13. d-Faktor
    Honorary Member

    d-Faktor R.I.P - gone but never forgotten.

    810
    0
    39
    frontpage?! urgh! if you want to avoid bad code, then don't use frontpage. to give you an example from this very same code snippet: bgsound is an internet explorer only (dhtml?) element!


    not much chance of that. i think the flash market penetration is quite high. http://www.macromedia.com/software/player_census/flashplayer/version_penetration.html
    i agree, i would also use an invisible flash movie.
     
  14. ffreeloader

    ffreeloader Terabyte Poster

    3,661
    106
    167
    What's flash? :p
     
    Certifications: MCSE, MCDBA, CCNA, A+
    WIP: LPIC 1
  15. d-Faktor
    Honorary Member

    d-Faktor R.I.P - gone but never forgotten.

    810
    0
    39
  16. ffreeloader

    ffreeloader Terabyte Poster

    3,661
    106
    167
    Well, don't know how much of a scripter I am, but AS looks pretty cool.
     
    Certifications: MCSE, MCDBA, CCNA, A+
    WIP: LPIC 1
  17. Jakamoko
    Honorary Member

    Jakamoko On the move again ...

    9,924
    74
    229
    It's a specific file that does something I want. Why am I thinking about the .wav format ? Cos I am ignorant in the extreme in web design, and trying to learn, and so taking onboard what all you good Folks have to offer.

    Thanks to all so far :)
     
    Certifications: MCP, A+, Network+
    WIP: Clarity
  18. SimonV
    Honorary Member

    SimonV Petabyte Poster Gold Member

    6,651
    180
    258
    Yes Gav you can set it to:
    HTML:
    loop="0"
     
    Certifications: MOS Master 2003, CompTIA A+, MCSA:M, MCSE
    WIP: Keeping CF Alive...
  19. Jakamoko
    Honorary Member

    Jakamoko On the move again ...

    9,924
    74
    229
    Anyone care to elaborate how I would go about this ?
     
    Certifications: MCP, A+, Network+
    WIP: Clarity
  20. JonnyMX

    JonnyMX Petabyte Poster

    5,257
    220
    236
    It really is that simple.
    Open us Flash and drag and drop the wav file onto the timeline. Create a canvas that is 1px square and transparent then publish the file.
     
    Certifications: MCT, MCTS, i-Net+, CIW CI, Prince2, MSP, MCSD

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.