Insert Animation into a Web Page
You create an animated graphic using appropriate animation software. GIF animation software layers multiple images and controls timing and looping options. Flash software creates the animated SWF format and, while more complicated, offers more extensive programming options. Creators offer some animated graphics to copy, at no cost, on their websites in exchange for a website link. Graphic professionals offer animated graphics for sale. The HTML code written to insert the animation into a website depends on the graphic format.
Instructions
Insert a Flash Animation
1. Upload the SWF file to your Web server. For the sake of this code, place the file in the same folder as your HTML file.
2. Open your HTML file to edit it. Navigate to the desired location for the animation.
3. Type
Replace "MovieName" with your chosen name and "filename.swf" with the name of your flash file. Replace "X" and "Y" with your desired width and height settings.
4. Save the HTML file to your server.
Insert a GIF Animation
5. Upload the GIF file to your Web server. For the sake of this code, place the file in the same folder as your HTML file.
6. Open your HTML file to edit it and navigate to the desired location for the animation.
7. Type
Replace "filename.gif" with your filename and change the width and height settings.
8. Save the HTML file to your server.
Tags: HTML file, file your, file your server, your HTML, your HTML file, your server