Академический Документы
Профессиональный Документы
Культура Документы
Preface 1
1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19
xxiii 1
2 4 5 6 7 7 9 9 10 10 11 13 14 14 15 16 16 17 18
2
2.1 2.2 2.3 2.4
24
25 25 26 30
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Contents
IX
Online Help and Tutorials Keeping Track of Your Favorite Sites File Transfer Protocol (FTP) Customizing Browser Settings Electronic Mail Instant Messaging Other Web Browsers
31 32 33 35 36 37 39
3
3.1 3.2 3.3 3.4
45
46 47 56 57 57 61 67 71 73 74 75
4
4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 4.11
80
81 82 82 85 87 88 91 95 97 98 100
5
5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.10 5.11
105
106 106 109 111 114 122 124 127 129 133 135
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Contents
6
6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10 6.11 6.12
140
141 141 143 145 149 151 153 156 158 159 165 168
7
7.1 7.2 7.3
174
175 175 183 183 188 190 191 194 199
8
8.1 8.2 8.3 8.4 8.5 8.6 8.7 8.8 8.9 8.10 8.11 8.12 8.13 8.14
209
210 210 211 211 214 215 220 221 225 231 235 236 239 240
9
9.1 9.2
251
252 252
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Contents
XI
for Repetition Statement Examples Using the for Statement switch Multiple-Selection Statement dowhile Repetition Statement break and continue Statements Labeled break and continue Statements
10
10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.9 10.10 10.11 10.12
JavaScript: Functions
Introduction Program Modules in JavaScript Programmer-Defined Functions Function Definitions Random-Number Generation Example: Game of Chance Another Example: Random Image Generator Scope Rules JavaScript Global Functions Recursion Recursion vs. Iteration Web Resources
294
295 295 297 298 303 308 316 317 320 321 324 326
11
11.1 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.10 11.11 11.12
JavaScript: Arrays
Introduction Arrays Declaring and Allocating Arrays Examples Using Arrays Random Image Generator Using Arrays References and Reference Parameters Passing Arrays to Functions Sorting Arrays Searching Arrays: Linear Search and Binary Search Multidimensional Arrays Building an Online Quiz Web Resources
338
339 339 341 342 349 351 352 355 356 362 366 369
12
12.1 12.2 12.3 12.4
JavaScript: Objects
Introduction Thinking About Objects Math Object String Object 12.4.1 Fundamentals of Characters and Strings 12.4.2 Methods of the String Object 12.4.3 Character-Processing Methods
378
379 379 381 383 383 383 385
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
XII
Contents
12.4.4 Searching Methods 12.4.5 Splitting Strings and Obtaining Substrings 12.4.6 XHTML Markup Methods 12.5 Date Object 12.6 Boolean and Number Objects 12.7 document Object 12.8 window Object 12.9 Using Cookies 12.10 Final JavaScript Example 12.11 Web Resources
387 389 391 393 398 400 400 406 410 417
13
13.1 13.2 13.3 13.4 13.5 13.6 13.7 13.8
429
430 430 432 436 438 441 443 445
14
14.1 14.2 14.3 14.4 14.5 14.6 14.7 14.8 14.9 14.10 14.11
451
452 452 454 455 457 459 463 465 468 470 471
15
15.1 15.2 15.3 15.4 15.5 15.6 15.7 15.8 15.9 15.10 15.11
476
477 478 480 481 483 484 486 488 490 494 495
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Contents
XIII
500 503
511
512 513 516 520 522 524 526 532 532
536
537 538 540 543 545 546 548 549 550 552 552 553 555 557 559 560 561 562 562 564 573 580 580
586
587 588
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
XIV
Contents
18.3 18.4
18.5 18.6
18.7
18.8
18.9 18.10
18.14 18.15
Objects in Flash Preliminary Instructions and Notes 18.4.1 Manual Coding 18.4.2 Labeling Frames 18.4.3 Using the Actions Layer Adding a Start Button Creating Moving Objects 18.6.1 Adding the Target 18.6.2 Adding the Blocker Adding the Rotating Cannon 18.7.1 Coding the Cannons Rotation 18.7.2 Hiding the Cannon Layer Adding the Cannon Ball 18.8.1 Initializing the Balls Motion Variables 18.8.2 Scripting the Balls Motion Adding Sound and Text Objects to the Movie Adding the Time Counter 18.10.1 Adding the Time Box 18.10.2 Creating a Final Animation Sequence Detecting a Miss Creating a Function Adding Collision Detectors 18.13.1 Adding Collision Detection to the Blocker 18.13.2 Adding Collision Detection to the Target Finishing the Game ActionScript 2.0 Elements Introduced in This Chapter
588 589 589 589 589 590 590 590 592 592 593 595 595 595 596 597 598 598 599 599 600 602 602 602 603 604
19
19.1 19.2 19.3 19.4 19.5 19.6 19.7 19.8 19.9 19.10
608
609 609 612 616 617 619 622 624 625 626
20
20.1 20.2 20.3 20.4
630
631 632 638 641 641 643
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Contents
XV
20.5
XML Vocabularies 20.5.1 MathML 20.5.2 Chemical Markup Language (CML) 20.5.3 MusicXML 20.5.4 RSS 20.5.5 Other Markup Languages Document Object Model (DOM) DOM Methods Simple API for XML (SAX) Extensible Stylesheet Language (XSL) Simple Object Access Protocol (SOAP) Web Services Water XML-Based Programming Language Web Resources
648 648 653 655 656 657 658 659 664 665 674 674 675 677
21
21.1 21.2 21.3 21.4 21.5 21.6
686
687 688 689 690 691 692 692 696 699 700 701 702 702 704 705 706
21.7 21.8
21.9
22
22.1 22.2 22.3 22.4
710
711 712 713 718 719 720 722 726 727 730 731 732
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
XVI
Contents
22.5 22.6
22.7 22.8
MySQL Introduction to DBI 22.6.1 Perl Database Interface 22.6.2 PHP dbx module 22.6.3 Python DB-API ADO.NET Object Model Web Resources
23
23.1 23.2
ASP.NET
Introduction .NET Overview 23.2.1 .NET Framework 23.2.2 ASP (Active Server Pages) .NET Setup JScript .NET A Simple ASP.NET Example Web Forms Session Tracking 23.7.1 Cookies 23.7.2 Session Tracking with HttpSessionState ASP.NET and XML Reading and Writing Text Files Connecting to a Database in ASP.NET Code-Behind Approach ASP.NET Web Services Web Resources
743
744 745 745 746 747 749 750 754 765 767 769 777 783 792 798 803 809
24
24.1 24.2 24.3 24.4 24.5 24.6 24.7 24.8
818
819 819 821 823 831 836 839 841
25
25.1 25.2 25.3 25.4 25.5 25.6 25.7 25.8 25.9
844
845 846 852 857 860 866 870 875 881
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Contents
XVII
886 888
26
26.1 26.2 26.3 26.4 26.5 26.6 26.7 26.8 26.9 26.10 26.11
PHP
Introduction PHP String Processing and Regular Expressions Viewing Client/Server Environment Variables Form Processing and Business Logic Verifying a Username and Password Connecting to a Database Cookies Dynamic Content in PHP Operator Precedence Chart Web Resources
898
899 900 910 915 916 922 929 933 939 947 948
27
27.1 27.2 27.3 27.4 27.5 27.6 27.7 27.8 27.9 27.10
Macromedia ColdFusion MX
Introduction Simple ColdFusion Example: Clock Using Variables and Expressions Variable Scoping Form Processing Creating a Data Source Name Bookstore Case Study: Interface and Database Bookstore Case Study: Shopping Cart Advanced Topics for ColdFusion Developers Web Resources
955
956 957 960 963 965 968 970 976 980 981
985
986 987 987 991 992 996 998 1012 1015 1019 1023
29
29.1 29.2 29.3 29.4
Accessibility
Introduction Web Accessibility Web Accessibility Initiative Providing Alternatives for Images
1032
1033 1034 1035 1035
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
XVIII
Contents
29.5 29.6 29.7 29.8 29.9 29.10 29.11 29.12 29.13 29.14 29.15
Maximizing Readability by Focusing on Structure Accessibility in XHTML Tables Accessibility in XHTML Frames Accessibility in XML Accessibility in Cascading Style Sheets (CSS) Testing the Accessibility of an XHTML Document Using Voice Synthesis and Recognition with VoiceXML CallXML JAWS for Windows Other Accessibility Tools Accessibility in Microsoft Windows 2000 and XP 29.15.1 Tools for People with Visual Impairments 29.15.2 Tools for People with Hearing Impairments 29.15.3 Tools for Users Who Have Difficulty Using the Keyboard 29.15.4 Microsoft Narrator 29.15.5 Microsoft On-Screen Keyboard 29.15.6 Accessibility Features in Microsoft Internet Explorer 29.16 Accessibility in Macromedia Products 29.16.1 Dreamweaver 29.16.2 Flash 29.17 Web Resources
1036 1037 1041 1041 1041 1042 1043 1050 1056 1056 1057 1059 1061 1063 1067 1068 1069 1070 1071 1072 1072
1080
1081 1081
1085
31 Dynamic HTML: Path, Sequencer and Sprite ActiveX Controls [On CD]
31.1 31.2 31.3 31.4 31.5 31.6 31.7 31.8 Introduction DirectAnimation Path Control Multiple Path Controls Time Markers for Path Control DirectAnimation Sequencer Control DirectAnimation Sprite Control Animated GIFs Web Resource
1098
1099 1099 1101 1104 1107 1110 1113 1115
32
32.1 32.2
1118
1119 1119
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Contents
XIX
Data Types and Control Structures VBScript Functions VBScript Example Programs Arrays String Manipulation Classes and Objects Operator Precedence Chart Web Resources
33
33.1 33.2 33.3 33.4 33.5 33.6 33.7 33.8 33.9 33.10 33.11
1165
1166 1166 1167 1167 1168 1173 1182 1194 1195 1206 1212
34
34.1 34.2 34.3 34.4 34.5 34.6 34.7 34.8
1218
1219 1219 1221 1223 1228 1232 1236 1240
35
35.1
1242
1243 1243 1245 1246 1249 1254 1259 1261 1263 1269 1274 1274 1274
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
XX
Contents
1279 1280
36
36.1 36.2
1288
1289 1291 1292 1293 1294 1295 1296 1300 1302 1306 1309 1313 1316 1322
36.3
1328
1329 1330 1331 1333 1334 1334 1336 1338 1339 1344 1348 1352 1353 1355 1357 1368
37.6
37.7
37.8 37.9
38
38.1 38.2
1374
1376 1377 1378 1378 1380 1383 1384
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
Contents
XXI
38.3 38.4
38.5
38.6
38.7
38.2.6 Comparison-Pricing Model 38.2.7 Bartering Model Building an e-Business e-Marketing 38.4.1 Branding 38.4.2 Marketing Research 38.4.3 e-Mail Marketing 38.4.4 Promotions 38.4.5 Consumer Tracking 38.4.6 Electronic Advertising 38.4.7 Search Engines 38.4.8 Affiliate Programs 38.4.9 Public Relations 38.4.10 Customer Relationship Management (CRM) Online Payments 38.5.1 Credit-Card Payment 38.5.2 Digital Cash and e-Wallets 38.5.3 Micropayments 38.5.4 Smart Cards Security 38.6.1 Public-Key Cryptography 38.6.2 Cryptanalysis 38.6.3 Key Agreement Protocols 38.6.4 Key Management 38.6.5 Secure Sockets Layer (SSL) 38.6.6 WTLS 38.6.7 IPSec and Virtual Private Networks (VPNs) 38.6.8 Security Attacks 38.6.9 Network Security Legal Issues 38.7.1 Privacy 38.7.2 Defamation 38.7.3 Sexually Explicit Speech 38.7.4 SPAM 38.7.5 Copyright and Patents XML and e-Commerce Introduction to Wireless Technology and m-Business m-Business Identifying User Location 38.11.1 E911 Act 38.11.2 Location-Identification Technologies Wireless Marketing, Advertising and Promotions Wireless Payment Options Privacy and the Wireless Internet Web Resources
1384 1385 1385 1385 1386 1386 1387 1387 1388 1388 1389 1390 1391 1391 1392 1392 1392 1393 1393 1394 1394 1398 1399 1399 1400 1401 1402 1403 1403 1405 1405 1405 1406 1406 1407 1408 1409 1409 1409 1410 1410 1411 1413 1414 1415
1429
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.
XXII
Contents
B C D E
E.1 E.2 E.3 E.4 E.5 E.6
XHTML Colors JavaScript Operator Precedence Chart ASCII Character Set Number Systems
Introduction Abbreviating Binary Numbers as Octal and Hexadecimal Numbers Converting Octal and Hexadecimal Numbers to Binary Numbers Converting from Binary, Octal or Hexadecimal to Decimal Converting from Decimal to Binary, Octal or Hexadecimal Negative Binary Numbers: Twos Complement Notation
F
F.1 F.2 F.3 F.4 F.5 F.6 F.7
Unicode
Introduction Unicode Transformation Formats Characters and Glyphs Advantages/Disadvantages of Unicode Unicode Consortiums Web Site Using Unicode Character Ranges
1449
1450 1451 1452 1452 1453 1454 1457
G
G.1 G.2 G.3
1462
1463 1464 1465 1465 1467 1467 1468 1468 1469 1469 1469 1469 1470 1471 1471 1472 1472
G.4 G.5
G.6
Bibliography Index
1479 1481
Copyright 19922004 by Deitel & Associates, Inc. and Pearson Education, Inc. All Rights Reserved.