tailieunhanh - JavaScript Bible, Gold Edition part 191
JavaScript Bible, Gold Edition part 191. 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-392 Part VI Appendixes bottomMargin leftMargin rightMargin topMargin NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Both of the following statements change the default left margin in IE4 30 or 30 leftMargin See bottomMargin. link See aLink. noWrap NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example To change the word wrapping behavior from the default the statement is true Appendix F Examples from Parts III and IV CD-393 rightMargin See bottomMargin. scroll NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example To change the scrollbar appearance from the default the statement is no scrollLeft scrollTop NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Listing 18-20 is the IE4 version of the NN example for pageXOffset and pageYOffset properties Listing 16-13 . Everything about these two examples is the same except for the syntax that retrieves the values indicating how much the document is scrolled in a window. Listing 18-20 Viewing the scrollLeft and scrollTop Properties HTML HEAD TITLE Master of all Windows TITLE SCRIPT LANGUAGE JavaScript function leftFrame var output HTML BODY H3 Body Scroll Values H3 HR n Continued CD-394 Part VI Appendixes Listing 18-20 continued output FORM INPUT TYPE text NAME xOffset SIZE 4 BR n output INPUT TYPE text NAME yOffset SIZE 4 BR n output FORM BODY HTML return output function rightFrame var output HTML HEAD SCRIPT LANGUAGE JavaScript n output function showOffsets n output 0 . n output 0 . n n output showOffsets n output SCRIPT HEAD BODY H3 Content Page H3 n output Scroll this frame and click on a table border to view page offset values. BR HR n .
đang nạp các trang xem trước