15.02.2013 Views

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

498<br />

<strong>JavaScript</strong> <strong>Examples</strong> <strong>Bible</strong>: The Essential Companion to <strong>JavaScript</strong> <strong>Bible</strong><br />

files, which you can view in your browser or text editor). A directory called Listings<br />

contains the example files, with nested folders named for each chapter of the<br />

<strong>JavaScript</strong> <strong>Bible</strong>. Each HTML file’s name is keyed to the Listing number in the book.<br />

For example, the file for Listing 15-1 is named lst15-01.htm. Note that the first<br />

part of each listing number is keyed to a <strong>JavaScript</strong> <strong>Bible</strong> chapter number. Thus,<br />

Listing 15-1 demonstrates a term discussed in Chapter 15 of the <strong>JavaScript</strong> <strong>Bible</strong><br />

(both editions), although the printed listing and discussion about the listing<br />

appears in Chapter 1 of this book because Chapter 1 contains examples for<br />

<strong>JavaScript</strong> <strong>Bible</strong> Chapter 15.<br />

For your convenience, an index.html file in the Listings folder provides a frontend<br />

table of contents to the HTML files for the book’s program listings. Open that<br />

file from your browser whenever you want to access the program listing files. If you<br />

intend to access that index page frequently, you can bookmark it in your<br />

browser(s). Using the index file to access the listing files can be very important in<br />

some cases, because several individual files must be opened within their associated<br />

framesets to work properly. Accessing the files through the index.html file assures<br />

that you open the frameset. The index.html file also shows browser compatibility<br />

ratings for all the listings. This saves you time from opening listings that are not<br />

intended to run on your browser. To examine and modify the HTML source files,<br />

open them from your favorite text editor program (for Windows editors, be sure to<br />

specify the .htm file extension in the Open File dialog box).<br />

You can open all example files directly from the CD-ROM, but if you copy them to<br />

your hard drive, access is faster and you will be able to experiment with modifying<br />

the files more readily. Copy the folder named Listings from the CD-ROM to any location<br />

on your hard drive.<br />

Electronic versions of the books<br />

These are complete, searchable versions of both this book and the <strong>JavaScript</strong><br />

<strong>Bible</strong>, Gold Edition, provided in Adobe Acrobat .pdf format. The Acrobat text for<br />

this book is in the folder named JS<strong>Examples</strong> PDF, while the <strong>JavaScript</strong> <strong>Bible</strong> text is in<br />

the JSBGold PDF folder.<br />

Adobe Acrobat Reader<br />

The Adobe Acrobat Reader is a helpful program that enables you to view the entire<br />

contents of both this book and the <strong>JavaScript</strong> <strong>Bible</strong>, Gold Edition, which are in .pdf format<br />

on the CD-ROM. To install and run Adobe Acrobat Reader, follow these steps:<br />

For Windows<br />

1. Start Windows Explorer or Windows NT Explorer and then open the Acrobat<br />

folder on the CD-ROM.<br />

2. In the Acrobat folder, double-click the rs405eng.exe icon and follow the<br />

instructions presented on-screen for installing Adobe Acrobat Reader.<br />

For Macintosh<br />

1. Open the Acrobat folder on the CD-ROM.<br />

2. In the Acrobat folder, double-click the Adobe Acrobat Installer icon and follow<br />

the instructions presented on-screen for installing Adobe Acrobat Reader.<br />

✦ ✦ ✦

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!