This practical resource contains 100 ready-to-run javascript plug-ins you can use to create dynamic Web content. The book begins by explaining javascript, Cascading Style Sheets (CSS), and the Document Object Model (DOM). Then, each chapter in Plug-In javascript offers complete, working examples for specific end results you can achieve right away. Using these plug-ins, youll be able to build javascript projects quicker and easier than ever, as many complex tasks are reduced to a single function call.
Get ready-made javascript plug-ins for:
Resizing and repositioning objects.
Fading between objects.
Movement and animation.
Chaining and interaction.
Menus and navigation.
Text effects.
Audio and visual effects.
Cookies, Ajax, and security.
Forms and validation.
And much more.
Author(s): Robin Nixon
Edition: 1
Publisher: McGraw-Hill Osborne Media
Year: 2010
Language: English
Pages: 433
Tags: Библиотека;Компьютерная литература;HTML / CSS / JavaScript;
Contents......Page 9
Acknowledgments......Page 25
Introduction......Page 27
1 Making the Best Use of These Plug-ins......Page 31
Downloading and Installing Web Browsers......Page 32
Choosing a Program Editor......Page 33
Managing Ajax......Page 34
Older Versions of Microsoft Internet Explorer......Page 36
Emulating Internet Explorers 6 and 7......Page 37
The Companion Website......Page 38
Including Single Plug-ins......Page 39
Bug Fixing and Reporting......Page 40
Waiting Until the Web Page Has Loaded......Page 41
Summary......Page 42
2 JavaScript, CSS, and the DOM......Page 43
The Document Object Model (DOM)......Page 44
Accessing the DOM from JavaScript......Page 46
Cascading Style Sheets......Page 47
Accessing Styles in JavaScript......Page 49
Summary......Page 51
3 The Core Plug-ins......Page 53
Variables, Arrays, and Functions......Page 54
How It Works......Page 55
How To Use It......Page 60
Plug-in 2: S()......Page 61
Variables, Arrays, and Functions......Page 62
How To Use It......Page 63
The Plug-in......Page 64
About the Plug-in......Page 65
How It Works......Page 66
The Plug-in......Page 69
About the Plug-in......Page 70
How To Use It......Page 71
About the Plug-in......Page 73
How To Use It......Page 74
Plug-in 6: FromKeyCode()......Page 75
How To Use It......Page 76
The Plug-in......Page 77
How To Use It......Page 78
Plug-in 8: PreventAction()......Page 79
How It Works......Page 80
How To Use It......Page 81
Plug-in 9: NoPx() and Px()......Page 82
How To Use Them......Page 83
Plug-in 10: X() and Y()......Page 84
How To Use Them......Page 85
Plug-in 11: W() and H()......Page 86
How They Work......Page 87
How To Use Them......Page 88
Plug-in 12: Html()......Page 89
How To Use It......Page 90
About the Plug-in......Page 91
How To Use It......Page 92
About the Plug-in......Page 93
How To Use It......Page 94
About the Plug-in......Page 95
How To Use It......Page 96
Variables, Arrays, and Functions......Page 97
Plug-in 17: HexDec()......Page 98
Plug-in 18: DecHex()......Page 99
How To Use It......Page 100
The Plug-in......Page 101
4 Location and Dimensions......Page 103
How It Works......Page 104
Plug-in 20: ResizeHeight()......Page 105
How To Use It......Page 106
Plug-in 21: Resize()......Page 107
The Plug-in......Page 108
How To Use It......Page 109
Plug-in 23: GoTo()......Page 110
How To Use It......Page 111
About the Plug-in......Page 112
The Plug-in......Page 113
How It Works......Page 114
About the Plug-in......Page 115
How To Use It......Page 116
About the Plug-in......Page 117
How It Works......Page 118
The Plug-in......Page 119
About the Plug-in......Page 120
How To Use It......Page 121
About the Plug-in......Page 122
The Plug-in......Page 123
How It Works......Page 124
The Plug-in......Page 125
5 Visibility......Page 127
Variables, Arrays, and Functions......Page 128
How To Use It......Page 129
How It Works......Page 130
Plug-in 33: VisibilityToggle()......Page 131
How To Use It......Page 132
About the Plug-in......Page 133
How It Works......Page 134
How To Use It......Page 135
About the Plug-in......Page 136
How It Works......Page 137
How To Use It......Page 142
The Plug-in......Page 143
Plug-in 36: FadeOut()......Page 144
The Plug-in......Page 145
How To Use It......Page 146
Plug-in 38: FadeToggle()......Page 147
How To Use It......Page 148
Plug-in 39: FadeBetween()......Page 149
How To Use It......Page 150
Variables, Arrays, and Functions......Page 151
How To Use It......Page 152
About the Plug-in......Page 153
How To Use It......Page 154
The Plug-in......Page 155
How It Works......Page 156
How To Use It......Page 157
The Plug-in......Page 158
6 Movement and Animation......Page 159
About the Plug-in......Page 160
How It Works......Page 161
How To Use It......Page 165
The Plug-in......Page 166
About the Plug-in......Page 167
How It Works......Page 168
How To Use It......Page 169
About the Plug-in......Page 171
Variables, Arrays, and Functions......Page 172
How It Works......Page 173
How To Use It......Page 175
The Plug-in......Page 176
Plug-in 46: Reflate()......Page 177
Variables, Arrays, and Functions......Page 178
How To Use It......Page 179
The Plug-in......Page 180
About the Plug-in......Page 181
How To Use It......Page 182
Plug-in 48: DeflateBetween()......Page 183
How It Works......Page 184
How To Use It......Page 185
About the Plug-in......Page 186
Variables, Arrays, and Functions......Page 187
How It Works......Page 188
How To Use It......Page 194
The Plug-in......Page 195
About the Plug-in......Page 197
How It Works......Page 198
How To Use It......Page 199
Plug-in 51: ZoomRestore()......Page 200
How It Works......Page 201
How To Use It......Page 202
Plug-in 52: ZoomToggle()......Page 203
How It Works......Page 204
How To Use It......Page 205
The Plug-in......Page 206
7 Chaining and Interaction......Page 207
About the Plug-ins......Page 208
How They Work......Page 209
How To Use Them......Page 212
Using the CallBack() Function Directly......Page 213
The Plug-ins......Page 214
How It Works......Page 215
Plug-in 55: While()......Page 216
How It Works......Page 217
How To Use It......Page 219
Plug-in 56: Pause()......Page 221
How To Use It......Page 222
About the Plug-in......Page 223
How It Works......Page 224
How To Use It......Page 225
Plug-in 58: Flip()......Page 226
Variables, Arrays, and Functions......Page 227
How It Works......Page 228
How To Use It......Page 229
About the Plug-in......Page 231
Variables, Arrays, and Functions......Page 233
How It Works......Page 234
How To Use It......Page 236
The Plug-in......Page 238
8 Menus and Navigation......Page 241
About the Plug-in......Page 242
How It Works......Page 243
How To Use It......Page 244
Plug-in 61: PopDown()......Page 246
Variables, Arrays, and Functions......Page 247
How To Use It......Page 248
The Plug-in......Page 249
Variables, Arrays, and Functions......Page 250
How To Use It......Page 251
Plug-in 63: PopToggle()......Page 252
How It Works......Page 253
How To Use It......Page 254
Plug-in 64: FoldingMenu()......Page 255
Variables, Arrays, and Functions......Page 256
How It Works......Page 257
How To Use It......Page 258
The Plug-in......Page 261
About the Plug-in......Page 262
How It Works......Page 263
How To Use It......Page 265
The Plug-in......Page 266
About the Plug-in......Page 267
How It Works......Page 268
How To Use It......Page 270
The Plug-in......Page 271
How It Works......Page 272
How To Use It......Page 274
The Plug-in......Page 275
How It Works......Page 276
Plug-in 69: BrowserWindow()......Page 278
About the Plug-in......Page 279
Variables, Arrays, and Functions......Page 280
How It Works......Page 281
How To Use It......Page 283
The Plug-in......Page 285
9 Text Effects......Page 287
Variables, Arrays, and Functions......Page 288
How It Works......Page 289
How To Use It......Page 290
The Plug-in......Page 291
Variables, Arrays, and Functions......Page 292
How It Works......Page 293
How To Use It......Page 294
Plug-in 72: MatrixToText()......Page 295
Variables, Arrays, and Functions......Page 296
How It Works......Page 297
The Plug-in......Page 299
About the Plug-in......Page 300
How To Use It......Page 301
The Plug-in......Page 302
About the Plug-in......Page 303
How It Works......Page 304
How To Use It......Page 306
The Plug-in......Page 308
About the Plug-in......Page 309
How It Works......Page 310
How To Use It......Page 311
About the Plug-in......Page 313
Variables, Arrays, and Functions......Page 314
How It Works......Page 315
How To Use It......Page 316
The Plug-in......Page 317
10 Audio and Visual Effects......Page 319
About the Plug-in......Page 320
How It Works......Page 321
How To Use It......Page 323
The Plug-in......Page 324
Variables, Arrays, and Functions......Page 325
How It Works......Page 326
How To Use It......Page 328
The Plug-in......Page 329
Plug-in 79: Billboard()......Page 330
How It Works......Page 331
How To Use It......Page 334
The Plug-in......Page 335
About the Plug-in......Page 336
How It Works......Page 338
How To Use It......Page 339
The Plug-in......Page 340
About the Plug-in......Page 341
How To Use It......Page 342
Plug-in 82: EmbedYouTube()......Page 343
How To Use It......Page 344
Plug-in 83: PulsateOnMouseover()......Page 345
Variables, Arrays, and Functions......Page 346
How It Works......Page 347
How To Use It......Page 348
The Plug-in......Page 349
11 Cookies, Ajax, and Security......Page 351
About the Plug-in......Page 352
How It Works......Page 353
How To Use It......Page 354
Plug-in 85: CreateAjaxObject()......Page 356
How It Works......Page 357
How To Use It......Page 358
The Plug-in......Page 359
About the Plug-in......Page 360
How To Use It......Page 361
Plug-in 87: PostAjaxRequest()......Page 362
How It Works......Page 363
How To Use It......Page 364
About the Plug-in......Page 365
How To Use It......Page 366
Variables, Arrays, and Functions......Page 367
The Plug-in......Page 368
12 Forms and Validation......Page 369
About the Plug-in......Page 370
How It Works......Page 371
The Plug-in......Page 372
About the Plug-in......Page 373
Variables, Arrays, and Functions......Page 374
How It Works......Page 375
Plug-in 92: ValidateEmail()......Page 376
How It Works......Page 377
The Plug-in......Page 378
About the Plug-in......Page 379
How To Use It......Page 380
Plug-in 94: CleanupString()......Page 381
How It Works......Page 382
Plug-in 95: ValidateCreditCard()......Page 383
How It Works......Page 384
The Plug-in......Page 386
13 Solutions to Common Problems......Page 389
How It Works......Page 390
Plug-in 97: Alert()......Page 391
About the Plug-in......Page 392
How It Works......Page 393
How To Use It......Page 395
The Plug-in......Page 396
About the Plug-in......Page 397
About the Plug-in......Page 398
Variables, Arrays, and Functions......Page 399
How It Works......Page 400
The Plug-in......Page 402
Plug-in 100: CursorTrail()......Page 403
Variables, Arrays, and Functions......Page 404
How It Works......Page 405
How To Use It......Page 407
The Plug-in......Page 408
About the Plug-in......Page 409
How It Works......Page 410
How To Use It......Page 412
The Plug-in......Page 413
A......Page 415
C......Page 417
D......Page 418
F......Page 419
G......Page 421
H......Page 422
I......Page 423
M......Page 424
N......Page 425
P......Page 426
S......Page 428
V......Page 430
W......Page 432
Z......Page 433