Pro JavaScript Techniques phần 9 potx
... IS JAVASCRIPT GOING? 299 Figure 14-2. The earth rotating around the sun and the moon rotating around the earth in a simple Canvas planet simulation 7273ch14final.qxd 11/16/06 8:04 AM Page 299 Web ... line ctx.scale(0.4,0.4); CHAPTER 14 ■ WHERE IS JAVASCRIPT GOING? 295 7273ch14final.qxd 11/16/06 8:04 AM Page 295 7273ch13final.qxd 11/16/06 8:06 AM Page 284 / / Add some properties to a...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 2 potx
... the Prototype web site: http://prototype.conio.net/. You can get Prototype documentation from the article “Painless JavaScript Using Prototype” at http://www.sitepoint.com/article/ painless -javascript- prototype/ . In ... are built. This entire process is facilitated by the prototype property (which exists as a property of every function, and since any function can be a constructor, it’...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 8 potx
... following listings. Core JavaScript Code Listing 13 -9 shows wiki.js, the main JavaScript code responsible for binding events and inter- acting with the user. Listing 13 -9. js/wiki.js // Get the ... it all together and put it in the page. Listing 12 -9 shows the final JavaScript code to make your full autocomplete search. Listing 12 -9. The Full JavaScript Code of Your Autocompl...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 1 ppt
... modern JavaScript programming. Object-Oriented JavaScript From a language perspective, there is absolutely nothing modern about object-oriented programming or object-oriented JavaScript; JavaScript ... ■ ■ Introducing Modern JavaScript ■CHAPTER 1 Moder n JavaScript Prog ramming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 PART 2 ■ ■ ■ Professional JavaScript De...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 3 pot
... particularly new for a seasoned program- mer, combining these concepts with the use of JavaScript ultimately improves JavaScript s usability and stature as a professional programming language. I highly ... for the JavaScript debugger project started by Mozilla. More information about the project and the renovated Firefox extension can be found at the following web sites: • Mozilla Venkma...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 4 pptx
... value tag("input")[0].setAttribute("value","Your Name"); CHAPTER 5 ■ THE DOCUMENT OBJECT MODEL 99 7273ch05final.qxd 11/16/06 8:18 AM Page 99 To achieve this, you could combine three techniques that you’ve learned to make an applica- tion ... that they’re working some additional JavaScript voodoo to get the users their results. • I f y ou disable JavaScri...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 5 doc
... capabilities. CHAPTER 7 ■ JAVASCRIPT AND CSS 1 49 7273ch07final.qxd 11/16/06 8:15 AM Page 1 49 JavaScript and CSS The interaction between JavaScript and CSS is a mainstay of modern JavaScript program- ming. ... prop ) { var old = {}; // Go through each of the properties for ( var i in prop ) { // Remember the old property value old[ i ] = elem.style[ i ]; // And set the new value el...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 6 pptx
... = tag( "a", g[i] ); CHAPTER 9 ■ BUILDING AN IMAGE GALLERY 199 7273ch09final.qxd 11/16/06 8:13 AM Page 199 Listing 8-2. The CSS Styles Used to Improve the Visual Quality of Your Form f orm ... do this is sho wn in Listing 9- 5. CHAPTER 9 ■ BUILDING AN IMAGE GALLERY 198 Figure 9- 3. A simply styled web page with images 7273ch09final.qxd 11/16/06 8:13 AM Page 198 Unfortunatel...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 7 ppsx
... a ); elem.parentNode.insertBefore( div, elem ); } CHAPTER 9 ■ BUILDING AN IMAGE GALLERY 2 09 7273ch09final.qxd 11/16/06 8:13 AM Page 2 09 ... a minimal amount of code and fuss. CHAPTER 9 ■ BUILDING AN IMAGE GALLERY212 Figure 9- 6. The extr a slideshow navigation added to the page 7273ch09final.qxd 11/16/06 8:13 AM Page 212 / / If the ... plain text string, holding only an HTML snippet...
Ngày tải lên: 12/08/2014, 23:20
Pro JavaScript Techniques phần 10 pot
... attributes, 99 –102 finding elements in HTML document b y class name, 91 92 by CSS selector, 92 94 overview, 91 XP ath expr essions, 95 96 getting contents of element HTML inside element, 98 overview, 96 text ... 328–3 29 previousSibling property, 82, 314 p rivate methods, 35–36 privileged methods, 36–37 prototypal inheritance, 33, 39 40 Prototype library, 45– 49, 164, 192 prot...
Ngày tải lên: 12/08/2014, 23:20