HTML and CSS Reference
In-Depth Information
</script>
</body>
</html>
Test the animation and see … make that, hear, the difference that sound makes. Of course, finding the
right sounds to use in the right circumstances, and not overdoing it, is an art in itself.
Because of the inconsistencies in the way browsers have implemented the audio element, several
JavaScript libraries have sprung up to smooth things out for the developer. If you come across problems
with a particular browser, don't be afraid to look around for some projects that address this cross-platform
need. Some of these libraries might even fallback to using Flash when all else fails, but at least you know
the user will hear the sound.
Summary
Congratulations on finishing the topic! It is no small accomplishment, and the techniques you learned here
can be applied to many different types of graphics programming environments. But of course, perhaps the
most exciting is the potential for web-based animations and games.
There's a bunch of examples provided in this topic for you to reference, play around with, and break. That
really is the best way to learn and move forward, tear the programs apart until you understand how each
little piece affects the rest. Of course, reading how things work is important, but you must code,
experiment, and put these ideas to use. And besides, that's the most fun part anyway. There's always
more to learn, so don't get hung up about not knowing this type of math, or that new programming style;
just hack it out, debug it, and get it to work. From there you can build on your successes and failures, and
keep creating even better things.
 
Search WWH ::




Custom Search