Click to See Complete Forum and Search --> : adding sound to document file


ashishp
December 17th, 1999, 03:50 AM
Hi,
I have a web page I want whenever somebody visit here it plays a sound.

czimmerman
December 17th, 1999, 05:19 PM
IE4 and up

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

Netscape:

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

Charles Zimmerman
http://www.freevbcode.com

ashishp
December 21st, 1999, 04:31 AM
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>

AndyK
December 21st, 1999, 01:41 PM
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>