tailieunhanh - JavaScript Bible, Gold Edition part 82

JavaScript Bible, Gold Edition part 82. This book will bring programmers and non-technical professionals, including casual programmers and scripters, painlessly up to speed on all aspects of mastering JavaScript. Key topics include programming fundamentals, JavaScript language elements and how to use them effectively, and how to easily and efficiently add powerful new functionality to HTML documents and Java applets. | 658 Part III Document Objects Reference The start property governs which number or letter begins the sequence of leading characters for nested LI items. If the TYPE attribute specifies numbers then the corresponding number is used if it specifies letters then the letter of the alphabet corresponding to the number becomes as the starting character. You can change the numbering in the middle of a sequence via the property. It is an extremely rare case that requires you to modify this property for an existing OL element. But if your script is creating a new element for a segment of ordered list items that has some other content intervening from an earlier OL element you can use the property to assign a starting value to the OL group. On h Example on the CD-ROM CD-ROm r Related Items type properties. type Value String Constant Read Write NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility An OL element can use any of five different numbering schemes. Each scheme has a type code whose value you can use for the type property. The following table shows the property values and examples Value Example A A B C . a a b c . I I II III . i i ii iii . 1 1 2 3 . The default value is 1. You are free to adjust the property after the table has rendered and you can even stipulate a different type for specific LI elements nested inside see the property . If you want to have further nesting with a different numbering scheme you can nest the OL elements and specify the desired type for each nesting level as shown in the following HTML example OL TYPE A LI One LI Two Chapter 27 Table and List Objects 659 LI Three OL TYPE a LI Sub One LI Sub Two LI Sub Three OL LI Four OL Indenting the HTML is optional but it may help you to keep the nesting straight. On h Example on the CD-ROM CD-ROm r Related Items start properties. UL Element Object For HTML element properties methods and event handlers see Chapter 15. Properties Methods Event .

TỪ KHÓA LIÊN QUAN