"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Go Back   Webmaster Forums > Code Forum > HTML Forum

Reply
 
Thread Tools Rate this Webmaster Discussion
Old 08-12-2009, 02:14 PM   #1
Jhnirsch
New Member
 
Join Date: Aug 2009
Webmaster Discussions: 1
Rep Power: 7
Jhnirsch is on a distinguished road
Exclamation adding sound to a Html web page

I am a noob at makeing web pages. I want to add a .wav to my web page. I am useing notpad to make my page and I dont know what to do can some one please help me.


Jhnirsch is offline   Reply With Quote
Old 11-03-2009, 02:59 AM   #2
Website Reaction
New Member
 
Join Date: Nov 2009
Location: Preston, Lancashire
Webmaster Discussions: 2
Rep Power: 6
Website Reaction is on a distinguished road
Re: adding sound to a Html web page

Try adding this between <body> and </body> and changing "yourmusic.wav" to your file name.

<SCRIPT TYPE="text/javascript">
<!--
var filename="yourmusic.wav";
if (navigator.appName == "Microsoft Internet Explorer")
document.writeln ('<BGSOUND SRC="' + filename + '">');
else if (navigator.appName == "Netscape")
document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
// -->
</SCRIPT>
<NOSCRIPT>
<BGSOUND SRC="yourmusic.wav">
</NOSCRIPT>
Website Reaction is offline   Reply With Quote
Reply

Bookmarks

Tags
html, web

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
Adding a soundbyte with HTML... Enchantress HTML Forum 2 03-13-2005 06:00 PM
multi-level JavaScript document.write / html page within a html page rebbekka Javascript Forum 7 09-20-2004 10:22 AM
How do you add sound to MSN group web page soulsentinal HTML Forum 2 09-01-2004 08:11 PM
Adding Sound to my website - WMP LTcommander3 HTML Forum 4 04-12-2004 07:25 PM


All times are GMT -5. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.