Special Edition Using Java Script
Mark C. Reynolds, et. al.
- Who Should Use This Book?
- How to Use This Book
- Conventions Used in This Book
- Live Content on the WWW
- Role of Scripting
- Extend the Capabilities of the HTML Page
- Variables and Values
- Statements and Operators
- Control Structures
- Functions and Objects
- Events and Actions
- Built-In Objects
- Browser and HTML Objects
- The String Object
- The Math Object
- The Date Object
Chapter 6 Interactive HTML Objects
- Review of HTML Forms
Chapter 7 Advanced HTML Objects and Navigation
- Creating and Using Anchors
- Selection or Scrolling-Your Option
- Example: An Application Using Advanced Navigation
- Example: Tri-Eye FTP Auto Dialer
Chapter 8 Dynamic HTML and Browser Objects
- Dynamic Documents
- Global and Local Variables
- Plug-Ins versus Helper Apps
- Plug-Ins and MIME Types
- Using Plug-Ins with HTML
- Plug-In Considerations
- Considerations in Using Plug-In Based Formats
- Plug-In Examples
Chapter 11 A Java Tutorial
- The Java Language
- Developing Java Applets
- An Accounting Applet in Java
Chapter 12 More About Java
- The Java Class Hierarchy
- A Pop-Up Document Viewer Applet
- An Image Viewer Applet
Chapter 13 VBScript and OLE Controls
- Language Overview
- Visual Basic Script in HTML
- Visual Basic Script and OLE Automation
- VBScript and Forms
- VBScript Is Growing
Chapter 14 Controlling Web Page Appearance
- Text Properties and Color Values
- Fonts and Font Methods
- Program Structure or Coding the Events
Chapter 15 Visual Effects
- Creating Dynamic Framesets
- A Simple Color Alternator
- A Better Color Alternator
- A Color Fader
- A Scrolling Marquee
- The Static Object
- Animating Images
- Generating Images
- A Drawing Application: JS-Draw
- The Show
Chapter 16 Creative User Interaction
- Creating Dynamic Output
- Generating Random Numbers
- A Random Phrase Generator
- An Online Bookstore
- An Overview of LiveWire
- Live Objects and Properties
- Navigator and Navigator Gold 2.0
- LiveWire Pro
- The Cover Page
- Parameter Specification and Data Storage
Chapter 20 Learning from the Pros: Site Outlines
- Stefan Raab of Cue Systems, LLC
- The Collapsing and Expanding Outline
- Getting up to Speed
- Losing Automatic Outline Building
- Simple Idea-Broad Application
- Matthew Fusfield of CyberExplorer
- The One-Way-Out Web Site
- New Web Site Formats = Old-Fashioned Organization
- Creating Entrance to a Controlled Site
- Finding a Use for Frames
- David Nagy-Farkas of LiveWeb
- Books Galore!
- Portability by Design
- Working with Databases
- Determining Variable Types
- Will It Work for a Candy Store?
The World Wide Web
- Netscape World
- Borland's JavaWorld
- Dimension X
- The Java Developer
- Sun Microsystems
- UseNet Newsgroups
- E-Mail Mailing Lists
- Search Engines
- General Web Sites
- Netscape Navigator Plug-Ins: Live Object Support
- Macintosh and PowerPC (Mac OS)
Appendix D Current Bugs and Future Enhancements
- Permanent Limitations
- The Future
Copyright 1996 by Que Corporation.
All rights reserved. Printed in the United States of America. No part of this book may be used or reproduced in any form or by any means, or stored in a database or retrieval system, without prior written permission of the publisher except in the case of brief quotations embodied in critical articles and reviews. Making copies of any part of this book for any purpose other than your own personal use is a violation of United States copyright laws. For information, address Que Corporation, 201 W. 103rd Street, Indianapolis, IN, 46290. You may reach Que's direct sales line by calling 1-800-428-5331.
|President||Roland Elgey||Publisher||Joseph B. Wikert|
|Publishing Director||Jim Minatel||Editorial Services Director||Elizabeth Keaffaber|
|Managing Editor||Sandy Doell||Director of Marketing||Lynn E. Zingraf|
|Senior Series Editor||Chris Nelson||Acquisitions Editor||Doshia Stewart|
|Product Director||Mark Cierzniak||Production Editors||Kelli M. Brooks, Jeff Riley|
|Editors||Tom Cirtin, Chuck Hutchinson, Theresa Mathias||Assistant Product Marketing Manager||Kim Margolius|
|Software Specialists||Dr. Donald Doherty, Oran J. Sands||Technical Editors||Dr. Donald Doherty, Stephen Feather, Faisal Jawdat, Chris Means, Joe Risse, Doug Welch, Martin Wyatt|
|Technical Specialist||Nadeem Muhammad||Operations Coordinator||Patricia J. Brooks|
|Editorial Assistant||Andrea Duvall||Acquisitions Assistants||Jane K. Brownlow, Andrea Duvall, Lisa Farley|
|Book Designer||Ruth Harvey||Cover Designers||Dan Armstrong, Ruth Harvey|
|Production Team||Brian Buschkill, Chad Dressler, Trey Frank, Jason Hand, Sonja Hart, Damon Jordan, Daryl Kessler, Stephanie Layton, Michelle Lee, Clint Lahnen, Julie Quinn, Kaylene Riemen, Laura Robbins, Bobbi Satterfield|
About the Authors
Mark C. Reynolds has wide-ranging interests in network programming, UNIX internals, and computer animation. He holds an M.S. degree in mathematics from M.I.T. He has edited and translated a number of works of mathematics, including Stanislaus Ulam's posthumous collection of essays, "Science, Computers and People: From the Tree of Mathematics."
He is Contributing Editor for Web Developer magazine, and co-author of Que's hugely successful title, Client/Server Programming with RPC and DCE. Currently, Mark is a consultant for Adaptive Optics Associates, Inc. (a unit of United Technologies Corporation), where he works on device drivers, image processing, Java, Tcl, and computer special effects. He is also an avid rock climber and mountaineer. Mark can be reached at email@example.com.
Ray Daly started the world's first consumer software mail order company in 1978, and a year later he started the first software store in the world. With the store came a customer support BBS, followed later by a fiction BBS called Story Board.
His current online activities include www.onsports.com, "Sponsor/Sponsored Site of the Day," e-mail services including the Capitals mailing list at mailcall.com, Web pages for his family (Janine, Juno, and Red), HTMLjive, and customer dependent consulting.
Rick Darnell is a midwest native currently living with his wife and two daughters in Missoula, Montana. He began his career in print at a small weekly newspaper after graduating from Kansas State University with a degree in broadcasting. While spending time as a freelance journalist and writer, Rick has seen the full gamut of personal computers since starting out with a Radio Shack Model I in the late 1970's. When not in front of his computer, he serves as a volunteer firefighter and member of a regional hazardous materials response team.
Dr. Donald Doherty is a brain scientist and a computer expert. His research into signal processing in both brains and computers keeps him pushing technology to its fullest capacity. Don enjoys sharing some of his adventures through writing about computers and the Internet.
Bill Dortch has developed software professionally for nearly 20 years. In 1995 he founded hIdaho Design, a Web site design company focused on highly interactive, multimedia site development. Prior to starting hD, Bill was Principal Software Architect at Frye Computer Systems, a leading supplier of network management software. Bill's products have been both commercially and critically successful, and have won many awards, including LAN Magazine's Product of the Year, Editor's Choice from PC Magazine, Infoworld, and PC Week, and many others.
Mona Everett, Ph.D., is a biochemist turned programmer. She works as a senior scientific software development specialist for Computer Data Systems, Inc., and is currently working on developing front-end access for a large medical epidemiological database. She is expert in Window's Delphi and Visual Basic as well as Mac's HyperCard.
Andrew Wooldridge is assistant Webmaster at Wells Fargo
Bank, a pioneer in online banking and Internet services since
1989. Prior to joining Wells Fargo, he was Webmaster of Global
Village Communications. Andrew started the HTML Writer's Guild,
which receives 40,000 hits per month.
The people at Que deserve a large measure of praise for their patience, perseverance, and hard work. I would especially like to thank Doshia Stewart and Kelli Brooks for their ongoing support, guidance, and impressive organizational skills. Many other people at Que have also worked very hard on this book, and are to be congratulated on the outcome.
This book would not have been possible without the strenuous efforts and prodigious technical knowledge of the entire writing team. I am very grateful for their individual contributions, each of which was indispensable.
We'd Like To Hear from You!
As part of our continuing effort to produce books of the highest possible quality, Que would like to hear your comments. To stay competitive, we really want you, as a computer book reader and user, to let us know what you like or dislike most about this book or other Que products.
You can mail comments, ideas, or suggestions for improving future editions to the address below, or send us a fax at (317) 581-4663. Our staff and authors are available for questions and comments through our Internet site, at http://www.mcp.com/que, and Macmillan Computer Publishing also has a forum on CompuServe (type GO QUEBOOKS at any prompt).
In addition to exploring our forum, please feel free to contact me personally to discuss your opinions of this book: I'm mcierzniak.que.mcp.com on the Internet, and 76245,476 on CompuServe.
Thanks in advance-your comments will help us to continue publishing the best books available on new computer technologies in today's market.
201 W. 103rd Street
Indianapolis, Indiana 46290
Although we cannot provide general technical support, we're happy to help you resolve problems you encounter related to our books, disks, or other products. If you need such assistance, please contact our Tech Support department at 800-545-5914 ext. 3833.
To order other Que or Macmillan Computer Publishing books or products, please call our Customer Service department at 800-835-3202 ext. 666.
Five years ago the Internet was mostly the province of academics and programmers, and the World Wide Web was an obscure idea in the minds of a few researchers. Today both are experiencing explosive growth and unparalleled interest. Web pages are being created at an astonishing rate. The fundamental challenge of Web page development is that while it is easy to create a Web page, it is more difficult to create an attractive and exciting one.
Que has more than a decade of experience writing and developing the most successful computer books available. With that experience, we've learned what special features help readers the most. Look for these special features throughout the book to enhance your learning experience.
The following font conventions are used in this book to help make reading it easier.
- Italic type is used to introduce new terms.
- Screen messages, code listings, and command samples appear in monospace type.
- Code that you are instructed to type appears in monospace bold type.
Tips present short advice on a quick or often overlooked procedures. These include shortcuts.
Notes present interesting or useful information that isn't necessarily essential to the discussion. A note provides additional information that may help you avoid problems or offers advice that relates to the topic.
Cautions look like this and warn you about potential problems that a procedure may cause, unexpected results, or mistakes to avoid.
This icon indicates you can also find the related information on the enclosed CD-ROM.