Sams Teach Yourself HTML 4 in 24 Hours
- Table of Contents
- Copyright
- About the Author
- Acknowledgments
- Tell Us What You Think!
- Put Your HTML Page Online Today
- I. Your First Web Page
- Hour 1. Understanding HTML and XML
- Hour 2. Create a Web Page Right Now
- Hour 3. Linking to Other Web Pages
- Hour 4. Publishing Your HTML Pages
- II. Web Page Text
- Hour 5. Text Alignment and Lists
- Hour 6. Text Formatting and Font Control
- Hour 7. Email Links and Links Within a Page
- Hour 8. Creating HTML Forms
- III. Web Page Graphics
- Hour 9. Creating Your Own Web Page Graphics
- Hour 10. Putting Graphics on a Web Page
- Hour 11. Custom Backgrounds and Colors
- Hour 12. Creating Animated Graphics
- IV. Web Page Design
- Hour 13. Page Design and Layout
- Hour 14. Graphical Links and Imagemaps
- Hour 15. Advanced Layout with Tables
- Hour 16. Using Style Sheets
- V. Dynamic Web Pages
- Hour 17. Embedding Multimedia in Web Pages
- Hour 18. Interactive Pages with Applets and ActiveX
- Hour 19. Web Page Scripting for Non-Programmers
- Hour 20. Setting Pages in Motion with Dynamic HTML
- VI. Building a Web Site
- Hour 21. Multipage Layout with Frames
- Hour 22. Organizing and Managing a Web Site
- Hour 23. Helping People Find Your Web Pages
- Hour 24. Planning for the Future of HTML
- VII. Appendixes
- A. Readers' Most Frequently Asked Questions
- B. HTML Learning Resources on the Internet
- C. Complete HTML 4 Quick Reference
- D. HTML Character Entities
Assembling the Pictures into an Animation
Once you have the individual GIF files saved, select File, Run Animation Shop from within Paint Shop Pro to start putting them together into a single animation file.
The basic idea here couldn't be simpler: You just need to tell Animation Shop which pictures to show and in what order. There are also a couple of other picky details you need to specify: how long to show each picture before moving on to the next one and how many times to repeat the whole sequence. Follow this step-by-step procedure to assemble an animation:
- Select File, Open (in Animation Shop, not in Paint Shop Pro). Select the image file that you want to be the first frame of the animation. It will appear as shown in Figure 12.2. Notice that the transparency is preserved, as indicated by the gray checkerboard pattern showing through.
Figure 12.2 This is a single-frame GIF image as it first appears when opened in Animation Shop.
- Select Animation, Insert Frames, From File to get the dialog box shown in Figure 12.3. Click the Add File button and choose the image you want to appear second in the animation. Click Add File again to add the third frame, and so forth, until the list contains all the images you made for this animation. Click OK.
Figure 12.3 Selecting Edit, Insert Frames, From File gives you this dialog box. The Add File button lets you choose an image to add to the animation.
-
You should now see all the frames laid out next to each other like a filmstrip (see Figure 12.4). You can use the scrollbar to move forward and back through the filmstrip if all the frames aren't visible at once. If you'd like to see a preview of the animation, select View, Animation. If any frames are in the wrong order, simply grab and drag them into the proper positions with the mouse.
Figure 12.4 Animation Shop displays all of an animation's frames side-by-side, like a filmstrip.
If you don't tell it any different, Animation Shop normally puts a tenth of a second between each frame of the animation. That was actually about right for my little burning-man icon. However, you will often want to control the length of time each individual frame is displayed before the next one replaces it.
- To set the timing for a frame, click it; the border around it will turn blue and red. Select Edit, Frame Properties; alternatively, you can right-click the frame and pick Properties from the pop-up menu. You'll get the dialog box shown in Figure 12.5, where you can specify the display time in hundredths of a second.
Figure 12.5 Right-click a frame and choose Properties to set the amount of time that frame should be displayed.
- One final detail, and your animation will be done! Select Edit, Animation Properties (alternately, right-click the gray area below the filmstrip and pick Properties from the pop-up menu) to get the Animation Properties dialog box shown in Figure 12.6. I want my flames to flicker as long as someone is viewing my animation, so I chose Repeat the Animation Indefinitely. In some cases, however, you may want your animation sequence to play only once (or some other number of times) before stopping to display the last frame as a still image. In that case, you'd select the second choice and enter the number of repetitions.
Figure 12.6 Right-click the gray bar below the frames and choose Properties to set the number of times the entire animation will repeat.
-
Your animation is complete. Select File, Save As to save it. You are presented with a control like the one shown in Figure 12.7, which allows you to choose a balance between good image quality and small file size.
Figure 12.7 When you save a GIF animation, Animation Shop automatically figures out which optimizations will work best.
The long list of optimizations may seem bewildering—and all the choices you'd have to make if you clicked the Customize button is even more mind-boggling. Fortunately, Animation Shop usually does an excellent job of choosing the most appropriate optimizations for you based on the slider setting. Move the slider up for better image quality, down for smaller file size.
How do you decide where it goes? Animation Shop helps there, too. Pick a setting and click Next. After some chugging and crunching, you'll see a report like the one shown in Figure 12.8. This makes it much easier for you to decide how big too big is; return to adjust the slider by clicking Back. When the file size seems acceptable, click Finish.
Figure 12.8 When you set the slider in Figure 12.7 and click Next, this report helps you decide whether you found the right balance.
Putting a GIF Animation onto a Web Page | Next Section

Account Sign In
View your cart