THE BOOK OF JAVASCRIPT, 2ND EDITION phần 8 doc

THE BOOK OF JAVASCRIPT, 2ND EDITION phần 8 doc

THE BOOK OF JAVASCRIPT, 2ND EDITION phần 8 doc

... elements of the XML document. It then loops through the array and uses getFirstValue() to determine the value of the name child of each user element. If the name child is the same as the name ... Code? Most of the code in this application was written in JavaScript and therefore appeared on the client side. I designed the application this way because this is Th...
Ngày tải lên : 06/08/2014, 16:23
  • 44
  • 347
  • 0
the book of javascript 2nd edition phần 8 ppsx

the book of javascript 2nd edition phần 8 ppsx

... "HEAD", then all the PHP script should do is send the header information in X. If it is not a HEAD request, then the body of the if-then clause reads the contents of the file into the $contents ... false;">odysseus</a> The body of the link is the name of the available list (shown here as odysseus). An onClick inside the link calls rea...
Ngày tải lên : 06/08/2014, 09:20
  • 50
  • 427
  • 0
the book of javascript 2nd edition phần 4 doc

the book of javascript 2nd edition phần 4 doc

... X. The first line in the body of the func- tion then swaps the image stored in position 0 of the_ images with the image on the page. If rotateImage(1) was called instead of rotateImage(0), the ... browsers X var the_ timeout; Y function upDate() { Z var the_ number = window.document .the_ form .the_ text.value; [ the_ number = parseInt (the_ number) + 1; \ window.doc...
Ngày tải lên : 06/08/2014, 09:20
  • 50
  • 489
  • 0
the book of javascript 2nd edition phần 5 docx

the book of javascript 2nd edition phần 5 docx

... indexOf(), the lastIndexOf() method gives you the position of the last occurrence of a character or substring. Table 11-1 shows the value of various calls to indexOf() and lastIndexOf() when the ... of the upper-left corner and the x and y coordinates of the lower-right corner, in pixels. So the first area in Figure 10-19 goes from the (9, 23) point of the...
Ngày tải lên : 06/08/2014, 09:20
  • 50
  • 381
  • 0
THE BOOK OF JAVASCRIPT, 2ND EDITION phần 3 doc

THE BOOK OF JAVASCRIPT, 2ND EDITION phần 3 doc

... 7- 28: Code for the Doctors Without Borders pull-down navigation tool The only big difference between the code in Figure 7-27 and the Doctors Without Borders code in Figure 7- 28 is the if-then ... ""> </form> </body> </html> Figure 8- 18: Creating a phone book using an associative array Figure 8- 19: The phone book page generated by the...
Ngày tải lên : 06/08/2014, 16:23
  • 56
  • 315
  • 0
THE BOOK OF JAVASCRIPT, 2ND EDITION phần 6 doc

THE BOOK OF JAVASCRIPT, 2ND EDITION phần 6 doc

... when the user presses ENTER while the cursor is in the text box (thereby submitting the form). In either case, the function getTranslations() is called with the contents of the text box. The ... 16). If the response is not an XML document, responseXML will contain the value null. To put the results of the query into the div in a in Figure 14-4, change the...
Ngày tải lên : 06/08/2014, 16:23
  • 42
  • 269
  • 0
the book of javascript 2nd edition phần 1 pptx

the book of javascript 2nd edition phần 1 pptx

... 10-15 183 Image Maps 184 Image Map Basics 185 Image Maps and JavaScript 186 How Salon’s Bug-Eating Script Works 186 Salon’s Nested Frames 188 Salon’s Image Map 188 The changeMe() Function 188 Summary ... Application The last appendix gives a couple of the book s longest code examples in their entirety. Companion Website The Book of JavaScript website (http://www.bookof...
Ngày tải lên : 06/08/2014, 09:20
  • 50
  • 401
  • 0
the book of javascript 2nd edition phần 2 pot

the book of javascript 2nd edition phần 2 pot

... file (src) of the image named my_image within the document object in the current window. The current window is the one in which the JavaScript is located. The document Object The document object ... 5 Manipulating the Appearance of New Windows The three parameters of the window.open() command control the new window’s characteristics. The URL Parameter The f...
Ngày tải lên : 06/08/2014, 09:20
  • 50
  • 532
  • 0
the book of javascript 2nd edition phần 3 pot

the book of javascript 2nd edition phần 3 pot

... it. The function multiplyTheFields() does all the work. The code in X of Figure 7-16 looks up the value of the text field field_one (]) inside the form my_form, located in the document of the ... sets the left border of the window you’re moving. If you move the left border of the window into the center of the screen, the window will be too far to...
Ngày tải lên : 06/08/2014, 09:20
  • 50
  • 410
  • 0
the book of javascript 2nd edition phần 6 pot

the book of javascript 2nd edition phần 6 pot

... Detecting the position of the mouse 246 Chapter 13 node to the end of the list of the parent’s children. If our parent is the body of the document, that puts the div at the end of the document. ... along the colon. It then loads the first part of the element into the_ property and the second part into the_ value. The first time through the loop...
Ngày tải lên : 06/08/2014, 09:20
  • 50
  • 404
  • 0