Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 65 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
65
Dung lượng
1,28 MB
Nội dung
[...]... Detecting Changes in Check Box Selections Task 95: Verifying Form Fields in JavaScript Task 96: Using the onSubmit Attribute of the Form Tag to Verify Form Fields xiii 12 4 12 6 12 8 13 0 13 2 13 4 13 6 13 8 14 0 14 2 14 4 14 6 14 8 15 0 15 2 15 4 15 6 15 8 16 1 16 2 16 4 16 6 16 8 17 0 17 2 17 4 17 6 17 8 18 0 18 2 18 4 18 6 18 8 19 0 19 2 19 4 19 6 19 8 xiv JavaScript in 10 Simple Steps or Less Task 97: Verifying Form Fields Using INPUT... Task 16 : Searching for Text in Strings Task 17 : Replacing Text in Strings Task 18 : Formatting Strings Task 19 : Applying Multiple Formatting Functions to a String Task 20: Creating Arrays Task 21: Populating an Array Task 22: Sorting an Array Task 23: Splitting a String at a Delimiter Task 24: Calling Functions xix 1 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 xii JavaScript in 10 . .. 306 308 310 312 314 316 318 320 322 324 327 328 330 332 334 336 338 340 342 344 346 xvi JavaScript in 10 Simple Steps or Less Task 16 8: Controlling Line Height in CSS Task 16 9: Creating Drop Shadows with CSS Task 17 0: Modifying a Drop Shadow Task 17 1: Removing a Drop Shadow Task 17 2: Placing a Shadow on a Nonstandard Corner Task 17 3: Managing Z-Indexes in JavaScript Task 17 4: Setting Fonts for Text... Creating Multiple Form Submission Buttons Using INPUT TYPE=”button” Buttons Task 10 8 : Reacting to Mouse Clicks on Buttons Task 10 9 : Using Graphical Buttons in JavaScript Task 11 0: Controlling the Form Submission URL Task 11 1: Validating a Numeric Text Field with Regular Expressions Task 11 2: Encrypting Data before Submitting It Task 11 3: Using Forms for Automatic Navigation Jumping Part 5: Manipulating... Manipulating Browser Windows Task 11 4: Using the Window Object Task 11 5: Popping Up an Alert Dialog Box Task 11 6: Popping Up Confirmation Dialog Boxes Task 11 7: Popping Up JavaScript Prompts Task 11 8: Creating New Browser Windows Task 11 9: Opening a New Browser Window from a Link Task 12 0: Setting the Size of New Browser Windows Task 12 1: Setting the Location of New Browser Windows Task 12 2: Controlling Toolbar... 90 92 94 96 98 10 0 10 2 10 4 10 6 10 8 11 0 11 2 11 4 11 7 11 8 12 0 12 2 Contents Task 60: Detecting Click Events on Images Task 61: Switching an Image Programatically Task 62: Using Multiple Rollovers in One Page Task 63: Displaying a Random Image Task 64: Displaying Multiple Random Images Task 65: Using a Function to Create a Rollover Task 66: Using a Function to Trigger a Rollover Task 67: Using Functions... for New Browser Windows Task 12 3: Determining the Availability of Scroll Bars for New Browser Windows Task 12 4: Restricting Resizing of New Browser Windows Task 12 5: Loading a New Document into a Browser Window Task 12 6: Controlling Window Scrolling from JavaScript Task 12 7: Opening a Full-Screen Window in Internet Explorer Task 12 8: Handling the Parent-Child Relationship of Windows Task 12 9: Updating... Updating One Window’s Contents from Another Task 13 0: Accessing a Form in Another Browser Window Task 13 1: Closing a Window in JavaScript Task 13 2: Closing a Window from a Link 200 202 204 206 208 210 212 214 216 218 220 222 224 226 228 230 232 235 236 238 240 242 244 246 248 250 252 254 256 258 260 262 264 266 268 270 272 Contents Task 13 3: Creating Dependent Windows in Netscape Task 13 4: Sizing a Window... Concatenating Strings Searching for Text in Strings Replacing Text in Strings Formatting Strings Applying Multiple Formatting Functions to a String Creating Arrays Populating an Array Sorting an Array Splitting a String at a Delimiter Calling Functions Alerting the User Confirming with the User Creating Your Own Functions Passing an Argument to Your Functions Returning Values from Your Functions Passing... TYPE=”button” Instead of TYPE=”submit” Task 98: Validating E-mail Addresses Task 99: Validating Zip Codes Task 10 0 : Validating Phone Numbers Task 10 1 : Validating Credit Card Numbers Task 10 2 : Validating Selection List Choices Task 10 3 : Validating Radio Button Selections Task 10 4 : Validating Check Box Selections Task 10 5 : Validating Passwords Task 10 6 : Validating Phone Numbers with Regular Expressions Task 10 7 : . JavaScript TM in 10 Simple Steps or Less Arman Danesh 01 542 419 FM.qxd 11 /19 /03 10 : 28 AM Page iii 01 542 419 FM.qxd 11 /19 /03 10 : 28 AM Page ii JavaScript TM in 10 Simple Steps or Less 01 542 419 . FM.qxd 11 /19 /03 10 : 28 AM Page i 01 542 419 FM.qxd 11 /19 /03 10 : 28 AM Page ii JavaScript TM in 10 Simple Steps or Less Arman Danesh 01 542 419 FM.qxd 11 /19 /03 10 : 28 AM Page iii JavaScript TM in 10 Simple. Window 268 Task 13 1: Closing a Window in JavaScript 270 Task 13 2: Closing a Window from a Link 272 xiv JavaScript in 10 Simple Steps or Less 01 542 419 FM.qxd 11 /19 /03 10 : 22 PM Page xiv Task 13 3: