1. Trang chủ
  2. » Công Nghệ Thông Tin

The javascript anthology 101 essential tips tricks hacks - phần 1 pptx

16 217 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

[...]... on the Value of other Fields Summary 10 9 11 1 11 3 11 4 11 5 11 5 11 6 11 7 11 9 12 1 12 5 7 Working with Windows and Frames 12 7 Using Popup Windows 12 8 What’s Wrong with Popups? 12 8 How Do I Minimize the Problems? 12 9 Opening Off-site Links in a New Window 13 3 Communicating Between Frames 13 5 Getting the Scrolling Position 13 7 Making the. .. 14 8 Summary 15 0 9 Working with Dates and Times 15 1 Getting the Date and Time 15 1 Formatting a Date into a Sentence 15 4 Formatting the Time into a 1 2- or 24-hour Clock 15 7 Comparing Two Dates 15 9 Formatting the Difference Between Dates 16 4 Summary 16 6 Order the print version of this book to get all 588 pages! v The JavaScript Anthology. .. JavaScript Anthology 10 Working with Images 16 7 Preloading Images 16 7 Swapping One Image for Another 16 9 Displaying an Image at Random 17 1 Making a Slideshow of Several Images 17 3 Making an Image Fade in or out 17 6 Making an Image-based Clock that Updates in Real Time 18 1 Making a Progress Indicator 18 6 Summary 18 9 11 Detecting Browser... Complexity of the Animation The Speed of the Computer The Speed of the Browser Implementing Drag-and-drop Behavior Reordering a List Using Drag-and-drop Functionality Making a Scrolling News Ticker Creating Clip-based Transition Effects Making a Slider Control Summary 270 278 279 279 280 280 2 81 2 81 290 298 305 311 318 15 DHTML Menus... pages! vii The JavaScript Anthology JavaScript Behaviors Tricks and Hacks Towards Best Practice Summary 438 449 453 456 17 Using JavaScript with Flash 457 Detecting whether Flash is Installed in a Browser 457 Communicating Between JavaScript and Flash 4 61 FSCommand 4 61 Flash /JavaScript Integration Kit 464 Summary 465 18 Building... Position 14 0 Getting the Viewport Size (the Available Space inside the Window) 14 1 Summary 14 2 8 Working with Cookies 14 3 Writing Cookies 14 3 Reading a Cookie 14 5 Setting a Cookie to Expire at a Specific Date and Time 14 6 Making a Cookie Accessible Only from a Specific Domain or Path 14 7 Circumventing Browser Restrictions on the Number... 502 Summary 514 19 Object Orientation in JavaScript 515 What’s so Good about Object Orientation? 516 Abstraction 516 Encapsulation 516 Class Inheritance 517 Polymorphism 518 Object Based Code vs Object Oriented Code 518 Writing an Object Oriented Script 519 Creating Methods for an Object 5 21 Prototype-based Method Creation... Detecting Browser Differences 19 1 Identifying Support for a Particular Feature 19 2 Identifying a Particular Browser 19 4 Detecting Quirks Mode and Standards Mode 19 8 Summary 200 12 Using JavaScript with CSS 2 01 Changing the Style of a Single Element 2 01 Changing the Style of a Group of Elements 203 Retrieving the Computed Style of an Element ... 398 Drag-and-drop Functionality 400 AJAX and other Remote Scripting Techniques 4 01 Making title Attribute Tooltips Display on Focus 402 Making a DHTML Menu Accessible to the Keyboard 411 Making a DHTML Menu Usable via the Keyboard 4 21 Making a DHTML Slider Control Accessible to the Keyboard 428 Making Scripts Accessible to Screen Readers 436 Order the print version... Don’t Have JavaScript (Progressive Enhancement) 5 Separating Content from Behavior (Unobtrusive Scripting) 8 Using Braces and Semicolons (Consistent Coding Practice) 11 Adding a Script to a Page 12 Putting HTML Comments Around Code 13 The language Attribute 14 Getting Multiple Scripts to Work on the Same Page 14 Hiding JavaScript Source Code 18 Debugging . 457 18 . Building Web Applications with JavaScript 467 19 . Object Orientation in JavaScript 515 20. Keeping up the Pace 565 The JavaScript Anthology 10 1 Essential Tips, Tricks & Hacks by. 16 7 11 . Detecting Browser Differences 19 1 12 . Using JavaScript with CSS 2 01 14 . Time and Motion 267 15 . DHTML Menus and Navigation 3 21 16 . JavaScript and Accessibility 385 17 . Using JavaScript. Times 15 1 Getting the Date and Time 15 1 Formatting a Date into a Sentence 15 4 Formatting the Time into a 1 2- or 24-hour Clock 15 7 Comparing Two Dates 15 9 Formatting the Difference Between Dates 16 4 Summary

Ngày đăng: 13/08/2014, 08:21

TỪ KHÓA LIÊN QUAN