|
Web Design Home
Rollover Images ActiveX controls Animated Gifs Web Audio Quicktime GIF vs JPEG Web Design Glossary FREE Hosting!With every domain name you register with ZappyHost, you get FREE hosting.$1.99 Domain NamesWith every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99. |
Web AudioThere are many ways of adding audio to a web page. Some of them are less user friendly than others (don't you love it when you're discretely surfing the web at work, when suddenly you come across a web page that starts blaring some idiotic tune at you...) Yes, you can make a tune start playing as soon as someone loads your page, or you can give them the option to hear it, even better you can add the option for them to have full control over things like stop, start, the volume etc Adding sound to a web pageOne of the easiest ways to add an audio file is to use the all familiar
" Listen to a sample of <a href="good_enough.mp3">"Good
enough" by John Hall</a>
Preloading a sound fileOften you will want to preload this kind of file so that it doesn't take so long for the noise to start after the user has clicked on the link. You can preload using the following technique: <EMBED NAME="goodenough" SRC="good_enough.mp3" LOOP=FALSE AUTOSTART=FALSE
HIDDEN=TRUE MASTERSOUND>
This embeds the sound, but you've got the 'autostart' feature off (so as not to annoy people) and the 'hidden' feature to be true so that the user doesn't see a console upon entering your webpage. Embedding an audio fileOf course, you can just go straight ahead and embed the file right into your page like so: <embed name="goodenough" src="good_enough.mp3" width=300 height=90
loop=FALSE autostart=FALSE>
</embed>
Enjoy this website?
Oh, and thank you for supporting Quackit! |
Need Content for your Website?Get unique, quality digital content for your website. You can even earn money by reselling it!Includes:
|