Get Organized Basic HTML Structure Formatting Text Lists Images, Links & Tables Sound & Video Frames Tutorial HTML <TAG> Dictionary HTML Colour Chart HTML Error Chart HTML Questions & Answers Back to Southbrook ![]() |
To add a little fun to your web page, you can add sound or video clips to it. These clips can automatically start when you enter the page, or can be controled by the user. To add sound or video to your page, you use the EMBED tag. This works for wav, midi, QuickTime, AVI and other file types. Below you will find some sample code for you to try out. As with sound and video, there are many variables involved to make it run properly, so make sure you have the proper cards, drivers and software installed properly. Embed a wav file into your page with normal size controls: <EMBED SRC="hello.wav" WIDTH=145 HEIGHT=55></EMBED> Embed a midi file into your page with normal size controls: <EMBED SRC="welcome.mid" WIDTH=145 HEIGHT=55></EMBED> Other attributes that can be used: <EMBED src="hello.wav" Width=140 height=15 repeat=false autostart=false controls=smallconsole></EMBED> If you want a certain type of plug-in to be used, specify it like this: <EMBED TYPE="music/crescendo" SONG="always.mid" PLUGINSPAGE="http://www.liveupdate.com/dl.html" WIDTH=200 HEIGHT=55> </EMBED> In IE, you can add a background sound by just adding it to your BODY tag: <BODY bgsound="welcome.mid"> If you want to just link to a file, just create a normal link to it: <A HREF="hello.wav">Click Here for sound clip</A> Embed an AVI Video to your page: <EMBED SRC="movie.avi" width=300 height=200></EMBED> Embed a QuickTime movie to your page: (You must have the plugin to view these files) <EMBED SRC="videoclip.mov" HEIGHT=180 width=322></EMBED> Here is a list of some of the attributes that you can use while embedding an object. Just put them inside your EMBED tag: src="music.mid" - the name and/or path to the sound/video clip. align=center - placement of the console. width=150 - width of the console/video. height=20 - height of the console/video. autostart=false - specifies if you want it to start once the page has loaded or not (true|false). play_loop=2 - if you want the sound repeated more that once. Specify a number for exact number of times you want it to repeat (true|false). repeat=false - if you want the sound repeated more that once. Specify a number for exact number of times you want it to repeat (true|false). hidden=false - if you want the controls hidden or on screen (true|false). controls=smallconsole - specify the type of control panel. type="music/crescendo" - The type of plug-in that will be used. song="always.mid" - the name and/or path to the sound clip. pluginpage="http://www.liveupdate.com/dl.html" - URL to download plugin at. There are other things that you can do with sound and video, but this should give you a basic idea so that you can start experimenting.
![]() ![]() ![]() |