Lesson Seven

Video files (such as: .avi .qt .mov .wmv .mpeg .mjpeg) can be embedded into Web pages like sound files, though there is no bgvideo alternative this time. The code to use is demonstrated here, though the bit about the style is not essential (I just added it to show that you can float a video just like a photo):-

Again you could use JavaScript to change the video and to link videos to buttons. Video files are of course rather large and this can be costly for you to upload to the visitors to your site and for them to download, so edit them down to the minimum and reduce the resolution and frame rate as much as you can, though obviously trying not to destroy the purpose of showing them. If you are shooting video with the intention of putting it on your Web site, try to shoot it in one of the more efficient formats (or convert it afterwards).

Keep in mind that you won't always need to put your "Web site" on the Internet: you could distribute copies of it on disk to all the people who might want to see your pictures and video. Your intended audience will then be able to explore the material off line and see all the photos and video at full resolution. There are of course other pieces of software which would let them look at your pictures and video, but by designing a package of material to be viewed with a browser, you can offer a more rewarding experience which lets them choose the order in which they follow your hyperlinks, and you can also add extra interactivity with JavaScript programs.

Note: as with sound files, you can add loop="-1" into the embed tag to make a video play repeatedly.