Brief introduction:
The basic JavaScript Tutorial (8th Edition) introduces JavaScript and related CSS, DOM, Ajax, jquery and other technologies. Starting with the JavaScript Language Foundation, the book discusses images, frames, browser windows, forms, regular expressions, user events, and cookies, and adds two chapters on the previous version to tell the basics of the jquery framework. This book not only introduces the basics and how to use them, but also explores examples of JavaScript applications in depth.
Cover:
Directory:
Chapter 1th Understanding JavaScript 1
What is 1.1 JavaScript 1
1.2 JavaScript is not Java 2
1.3 The origins of JavaScript 3
What 1.4 JavaScript can do 3
1.5 JavaScript can't do what 3
What is 1.6 Ajax 4
1.7 Modular (Snap-together) Language 5
1.7.1 Object 5
1.7.2 Property 6
1.7.3 Method 6
1.7.4 to group objects, properties, and methods together 6
1.7.5 DOM Introduction 7
1.8 Handling Events 7
1.9 Values and Variables 8
1.9.1 operator 8
1.9.2 Assignment and comparison 9
1.9.3 Comparison 9
1.10 Writing JavaScript-friendly HTML 10
1.10.1 structure, performance and behavior 10
1.10.2 Div and Span 10
1.10.3 class and ID 11
1.11 What tool to use 12
The 2nd Chapter begins 13
2.1 Where to put the script 13
2.2 About Functions 14
2.3 Using external Scripts 15
2.4 Adding comments to the script 17
2.5 Warning to users 18
2.6 Confirming the user's choice 19
2.7 Prompting the user 21
2.8 Redirecting users with links 22
2.9 using JavaScript to improve links 25
2.10 Using multilevel conditions 28
2.11 Handling Error 30
Chapter 3rd the first Web application 33
3.1 Repeating operations with loops 33
3.2 Passing a value to a function 37
3.3 Probe Object 39
3.4 Working with arrays 40
3.5 processing a function with a return value 42
3.6 Updating Arrays 43
3.7 Using the Do/while Loop 44
3.8 Calling scripts in several ways 46
3.9 using JavaScript and CSS in combination 47
3.10 Checking Status 50
3.11 Handling String Arrays 55
The 4th chapter deals with Images 59
4.1 Creating a rollover 59
4.2 Creating a more efficient flip-up device 61
4.3 Building a three-state flip 64
4.4 By chain contact Hair Flip 66
4.5 Let multiple links trigger a flip 68
4.6 Handling multiple Flips 71
4.7 Creating a looping AD strip 74
4.8 Adding a link to a circular banner 76
4.9 Creating a looping slide 78
4.10 Displaying random images 80
4.11 Randomly start looping the image 81
5th window and Frame 83
5.1 prevent page from appearing in frame 83
5.2 Setting the target 84
5.3 Loading an IFRAME with JavaScript 86
Use of 5.4 IFRAMEs 87
5.5 Creating a dynamic IFRAME 89
5.6 Sharing a function between documents 90
5.7 Opening a new window 92
5.8 Loading different content for a window 96
6th-Form Processing 98
6.1 Selecting and transferring the navigation menu 99
6.2 Changing menus Dynamically 102
6.3 Creating a field that must be filled in 104
6.4 Checking fields against other fields 109
6.5 Identifying the problematic field 111
6.6 Preparing for Form validation 113
6.7 Handling radio Buttons 117
6.8 Setting another field with one field 119
6.9 Test ZIP Code 122
6.10 Verifying e-mail address 126
7th-form and regular expression 131
7.1 Verifying e-mail addresses with regular expressions 131
7.2 Verifying the file name 136
7.3 Extracting a String 139
7.4 Formatting Strings 141
7.5 Formatting and sorting strings 144
7.6 Formatting and validating strings 146
7.7 Replacing an element with a regular expression 148
8th. Handling Events 151
8.1 Processing Window Events 151
8.1.1 OnLoad Event 151
8.1.2 OnUnload Event 154
8.1.3 OnResize Event 154
8.1.4 OnMove Event 156
8.1.5 Onabort Event 156
8.1.6 onerror Event 156
8.1.7 onfocus Event 156
8.1.8 onblur Event 157
8.2 Handling Mouse Events 158
8.2.1 OnMouseDown Event 158
8.2.2 OnMouseUp Event 161
8.2.3 OnMouseMove Event 161
8.2.4 onmouseover Event 163
8.2.5 onmouseout Event 163
8.2.6 ondblclick Event 164
8.2.7 OnClick Event 165
8.3 Form Event Handling 165
8.3.1 onsubmit Event 165
8.3.2 OnReset Event 165
8.3.3 onchange Event 166
8.3.4 onselect Event 166
8.3.5 onclick Event 166
8.3.6 onblur Event 166
8.3.7 onfocus Event 168
8.4-Key Event handling 169
8.4.1 onkeydown Event 169
8.4.2 onkeyup Event 172
8.4.3 onkeypress Event 172
Chapter 9th JavaScript and Cookies 173
9.1 Establishing the first cookie 173
9.2 Reading Cookies 176
9.3 Displaying Cookies 177
9.4 Using a cookie as a counter 178
9.5 Deleting Cookies 180
9.6 Processing multiple Cookies 182
9.7 Displaying new content reminder Information 184
Chapter 10th object and Dom 189
10.1 About node Manipulation 189
10.1.1 DOM 2 and 189
10.1.2 DOM 2 Terminology 189
10.1.3 DOM 3 190
10.2 Adding nodes 191
10.3 Deleting a node 192
10.4 Deleting a specific node 194
10.5 Inserting Nodes 197
10.6 Replacing Nodes 199
10.7 Writing code with object Literals 202
The 11th chapter establishes the dynamic page 206
11.1 Displaying the current date on a Web page 206
11.2 Date of Processing week 208
11.3 Customizing messages based on time 209
11.4 Display date according to time zone 210
11.5 Convert 24-hour system to 12-hour 213
11.6 Creating a Countdown counter 216
11.7 hiding and showing layers 219
11.8 moving objects in a document 221
11.9 Date Method 223
12th JavaScript Application Example 225
12.1 Using the Collapsible menu 225
12.2 Adding a drop-down menu 228
12.3 Improved drop-down menu 230
12.4 Slide with description 233
12.5 A boring name Generator 236
12.6 Bar Chart Builder 240
12.7 style sheet Switcher 246
The 13th Chapter AJAX Introduction 253
13.1 Definition of Ajax 253
13.2 Reading Server Data 255
13.3 Parsing Server Data 261
13.4 Refreshing Server data 266
13.5 Getting data from the server 267
13.6 previewing links with Ajax 270
13.7 Auto-complete form fields 273
14th Toolkit, framework and Library 279
14.1 Adding jquery 280
14.2 using jquery to update page 282
14.3 Interacting with jquery 282
14.4 Interactions and Updates 284
14.5 Auto-Complete field 287
15th Chapter 289 using jquery design page
15.1 Highlighting new elements 289
15.2 Creating a collapsible menu 292
15.3 Creating a more beautiful dialog box 294
15.4 Stripes Table 298
15.5 Table Sort 301
The 16th chapter is based on the application of jquery 306
16.1 Based on jquery 306
16.2 Customizing the appearance with Themeroller 307
16.3 Adding a calendar to a page 309
16.4 Drag and drop elements 313
16.5 working with external data using jquery 316
16.6 using the jquery plugin 322
17th Chapter Bookmarklet 328
17.1 First Bookmarklet 328
17.2 Changing the background color of a page 333
17.3 Changing the page style 334
17.4 Query Word 335
17.5 viewing images 337
17.6 display ISO Latin character 339
17.7 converting an RGB value to hex 340
17.8 conversion of Values 341
17.9 Bookmarklet Calculator 342
17.10 shortening the URL 344
17.11 Inspection Page 344
17.12 sending a page by e-mail 345
17.13 changing the page size 346
Appendix A JavaScript version evolution and reference 348
Appendix B javascript reserved word 373
Appendix C CSS Reference 376
Appendix D Other Learning Resources 386
Links: http://pan.baidu.com/s/1boTLQLx
Extract code: Scan the QR code below right below the public number reply resource name get download password
Basic JavaScript Tutorial (8th Edition) PDF