... Layer Visibility in JavaScript Task 257: Changing Layer Ordering in JavaScript Task 258: Fading Objects Task 259: Creating a Page Transition in Internet Explorer Task 260: Installing the X Cross-Browser ... “<br>”); </script> </body> Listing 246-1: Displaying a browser’s user agent string. Figure 246-1: Displaying browser information in Internet Explorer 6. Figur...
Ngày tải lên: 12/08/2014, 19:21
JavaScript in 10 Simple Steps or Less 2007 phần 10 doc
... overriding, 380–381 HTML (HyperText Markup Language) comments, hiding JavaScript code, 4–5 dynamic HTML, outputting, 92–93 610 JavaScript in 10 Simple Steps or Less 15 542419 index.qxd 11/19/03 10: 25 ... customization, 102 103 output to browser, 96–97 output to browser, formatting, 100 101 setHours method, 98–99 time zone and, 98–99 toGMTString method, 100 toLocaleSt...
Ngày tải lên: 12/08/2014, 19:21
... 16: Searching for Text in Strings 32 Task 17: Replacing Text in Strings 34 Task 18: Formatting Strings 36 Task 19: Applying Multiple Formatting Functions to a String 38 Task 20: Creating Arrays ... Creating a String Task 13: Creating a Numeric Variable Task 14: Performing Math Task 15: Concatenating Strings Task 16: Searching for Text in Strings Task 17: Replacing Text in Strings Task...
Ngày tải lên: 12/08/2014, 19:21
JavaScript in 10 Simple Steps or Less 2007 phần 2 potx
... cur- rent document, including the following: • Arrays containing anchors, applets, embedded objects, forms, layers, links, and plug-ins from the current document. • Properties providing information about ... want them sorted. The array object provides a sort method that does just this: It returns a comma- separated list of the elements in sorted order. Sorting is performed in ascending o...
Ngày tải lên: 12/08/2014, 19:21
JavaScript in 10 Simple Steps or Less 2007 phần 3 pps
... in that window • window.close: Closes a window • onLoad: Used in the body tag to trigger JavaScript to execute when a document continues loading The following steps create the placeholder window: 1. ... 11/19/03 10: 01 AM Page 107 Replacing the Browser Document with a New Document Y ou can replace the browser document with a new document by using two main methods of the document...
Ngày tải lên: 12/08/2014, 19:21
JavaScript in 10 Simple Steps or Less 2007 phần 4 ppsx
... You need to keep this in mind when working with selec- tion lists dynamically from JavaScript. • The use of the short-form ++ operator increases the operand before it by one. For instance a++ is the same ... referring to the cor- rect form in your code. • If the field is not named, then each field in the form is accessible in the document.formName. elements array, so that the fir...
Ngày tải lên: 12/08/2014, 19:21
JavaScript in 10 Simple Steps or Less 2007 phần 5 pps
... the window or document in the new window just as you would access the original window or document. This task illustrates how to open a new window containing a form and then pro- vide a link in ... enter information • Opening pages in new windows • Determining window sizes • Controlling scrolling of the document displayed in the window • Scheduling the execution of functions The w...
Ngày tải lên: 12/08/2014, 19:21
JavaScript in 10 Simple Steps or Less 2007 phần 6 pot
... you are using: • In Netscape 6 and higher, the window.innerHeight property indi- cates the height of the working area of the browser window in pixels. • In Internet Explorer, the document.body.clientHeight ... Sheet Settings Task 191: Hiding an Object in JavaScript Task 192: Displaying an Object in JavaScript Task 193: Detecting the Window Size Task 194: Forcing Capitalization...
Ngày tải lên: 12/08/2014, 19:21
JavaScript in 10 Simple Steps or Less 2007 phần 7 pot
... presented in this task to do a number of interest- ing things. For example, using the information in Tasks 178 or 179, you can place items in certain loca- tions in the Window. For instance, ... style=”padding: 5px 10px 15px 20px;”> Text goes here </div> • Specify distinct margins individually using the padding-top, padding-bottom, padding-right, and padding-left attrib- ut...
Ngày tải lên: 12/08/2014, 19:21
JavaScript in 10 Simple Steps or Less 2007 phần 8 pdf
... bookmark or favorite for a JavaScript bookmarklet. 11 542419 Ch10.qxd 11/19/03 10: 22 AM Page 479 Checking for E-mail Links with a Bookmarklet T his task outlines how to search a page for e-mail links ... techniques for working with selection lists in forms are outlined in Tasks 82 to 86. 10 542419 Ch09.qxd 11/19/03 10: 22 AM Page 471 8. Close the if and for blocks, and then us...
Ngày tải lên: 12/08/2014, 19:21