Links: Windows Stuff: Games Pages: Creating Your Own Website:
Search Engine Optimization and Free Submission
|
Embedding Sound Files
Adding audio can really add to your site but it can also drive people nuts. You have to think about whether or not you would want to hear the file you are considering putting in. Look at it from the view point of people visiting your site and be careful with your choice. You don't want to drive people away.
Creating sound files that play automatically <BGSOUND SRC="sound.wav"
LOOP=INFINITE>
Creating a clickable link <A HREF="cat.wav">
Click here to hear my cat meow.</A> <A HREF="cat.wav"><IMG SRC="caticon.gif"></A> <BR> Click the cat!
<BGSOUND SRC="sound.wav"
LOOP=INFINITE>
No loop
I used the tag at the bottom to put the sound file into my page. It only plays the sound file once when you open the page. One of the tags above should suit your needs. Have fun with it! Here I have embedded a sound file but I did not set it as background sound. Below is the tag I used to do this. You can regulate the size of the control box using the height and width tags. <src="rockylike.wav"> <embed src="rockylike.wav" autostart="false" hidden="false loop="false" controller="true"width="128" height="19"></embed>
Embedding
Video Files
Embedding video files is pretty much the same as embedding audio files. Here is the tag you will need. <src="video.mpg><embed src="video.mpg loop="0" autostart="0" controls="true" hidden ="false"> You
can adjust the height and width of the screen by using the height=" "
and the width=" " in the tag line but I just used the default in the
example that you can see here.
|