Want to learn to write your own JavaScripts? Here are links to some JavaScript tutorials on line. Or visit the JavaScript Experiments Bookstore to purchase a book on the subject from Amazon.com.
Of course, there's no better way to learn than by studying other people's source code. So check out the links to other JavaScript archives and look at their code.