CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 1999
    Posts
    7

    adding sound to document file

    Hi,
    I have a web page I want whenever somebody visit here it plays a sound.



  2. #2

    Re: adding sound to document file

    IE4 and up

    <embed src="'MySong.mid' autostart="true">

    Netscape:

    <bgsound src="'MySong.mid'">

    Charles Zimmerman
    http://www.freevbcode.com


  3. #3
    Join Date
    Dec 1999
    Posts
    7

    Re: adding sound to document file

    I am using this code in the page where I want music. Its not working I have called this page from other link.


    <html>
    <head>fsjdfls</head>
    <bgsound src="Cpqdiag.mid">
    <body>
    Welcome here
    </body>
    </html>





  4. #4
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: adding sound to document file

    First of all you usually need to specify whole path of MIDI song and second...I"m not exactly sure but I think bgsound should go after <body>

    <html>
    <head>fsjdfls</head>
    <body>Welcome here</body>
    <bgsound src="C:\yoursong.mid">
    </html>





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured