文件名称:Javascript Manual Of Style
文件大小:591KB
文件格式:CHM
更新时间:2010-07-02 12:21:48
Javascript Manual Of Style
This is a book about writing exciting Web pages with JavaScript. Before JavaScript or its ancestor, LiveScript, Web pages were written in HTML. The pages could be very sophisticated in their layout, but they just sat there. JavaScript can make your Web pages come alive. Your Web pages can now be dynamic, changing before the user's eyes. JavaScript can make your Web pages both more interesting and more fun.
JavaScript isn't very difficult to learn. I myself picked up the basics in a matter of hours. You can, too.
You don't need to read this book cover to cover, and you don't have to read the chapters in any particular order. Skip around, read what seems interesting, and write some code. It's the best way to learn. You will need a copy of Netscape Navigator, preferably version 2.01 or later, but that's all. I use WebMania! to write some of my code, because it takes care of a lot of the details that I might forget, but all you really need is a simple ASCII text editor-vi, emacs, Notepad, whatever.
This book is divided into three parts. The first part includes three chapters. Chapter 1is a quick introduction to JavaScript that describes what it is and where it came from. Chapter 2explains what JavaScript is good for, outlining what you can do with it. Chapter 3lets me get up on my soapbox and do a little preaching about what makes a good Web page, what makes a bad Web page, and what you can do to keep your pages on the good list.
The second section consists of six chapters, all of which contain a complete JavaScript Web page. Each chapter introduces a problem, demonstrates how you might solve it without JavaScript, and then shows how you can craft a much better solution with JavaScript. These chapters all conclude with some thoughts on how you can enhance the solution and how you can adapt the techniques to creating your own Web pages with JavaScript. In every chapter, the JavaScript code is discussed in depth, function by function. No mysteries; there's no one behind the curtain. If you don't understand something about the code, write me at marcj@nando.net. I'll be glad to answer your questions!
Finally, the third section contains six appendices, chock full of useful reference material: the character set, reserved words, a review of HTML, the JavaScript operators, JavaScript's built-in objects and functions, and online resources. Again, if there's something I missed, write me. I want to help.
This book was written on a nameless 486-based desktop system lovingly assembled by Computer Options of Raleigh, North Carolina, and on a Pentium-based Samsung notebook, using Microsoft Word for Windows 6.0 under Windows 3.1 (the desktop) and Windows 95 (the notebook). The Web pages created were tested on both platforms, as well as on a Sun Microsystems Sparc-10 running Solaris 2.4 and on the desktop system under Linux 1.2.1. Luke Cassady-Dorion, my excellent technical editor, also ran them on his Macintosh. The Web pages were written with WebMania! 1.5. Screen shots were taken with Collage Complete 1.0, and enhanced with Paint Shop Pro 3.12. My Web space provider is Hurricane Electric (he.net; my home page is http://www.he.net/~marcj/index.html), and the Web pages were loaded onto their server for live testing. All of this was accomplished through my Internet service provider, nando.net.
I had a lot of fun writing this book, and I hope it proves to be a useful addition to your library.