TAILIEUCHUNG - JavaScript Bible, Gold Edition part 173

JavaScript Bible, Gold Edition part 173. 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. | CD-212 Part VI Appendixes Listing 15-31 continued swap first and last nodes function swap if if remove last node function remove if true if true SCRIPT HEAD BODY H1 Node Methods H1 HR Here is a list of items UL ID myUL LI First Item LI Second Item LI Third Item LI Fourth Item UL FORM INPUT TYPE button VALUE Change to OL List onClick replace nbsp nbsp INPUT TYPE button VALUE Restore LI List onClick restore nbsp nbsp INPUT TYPE button VALUE Swap First Last onClick swap nbsp nbsp INPUT TYPE button VALUE Remove Last onClick remove BODY HTML You can accomplish the same functionality shown in Listing 15-31 in a crossbrowser fashion using the W3C DOM. In place of the removeNode and replaceNode methods use removeChild and replaceChild methods to shift the point of view and object references to the parent of the UL and OL objects the . Also you need to change the references to . aceNode Appendix F Examples from Parts III and IV CD-213 scrollIntoView topAlignFlag NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Use The Evaluator Chapter 13 to experiment with the scrollIntoView method. Resize the browser window height so that you can see only the topmost text box and the Results textarea. Enter each of the following statements into the top text box and see where the myP element comes into view false Expand the height of the browser window until you can see part of the table lower on the page. If you enter false into the top text box the page scrolls to bring the bottom of the table to the bottom of the window. But if you use the default parameter true or .

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.