JavaScript Bible, Gold Edition part 209

JavaScript Bible, Gold Edition part 209. 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-572 Part VI Appendixes Begin by reloading the page and making sure the style sheet is enabled. Enter the following statement into the top text box 0 .disabled false The first rule is for the myP element on the page. Change the rule s font-size style 0 .rules 0 . 20pt Look over the style object properties in the discussion of the style object later in this chapter and have fun experimenting with different style properties. After you are finished reload the page to restore the styles to their default states. Chapter 31 Examples The following sections contain examples from Chapter 31 Positioned Objects. NN4 Layer Object Properties above below siblingAbove siblingBelow NN2 NN3 NN4 NN6 IE3 J1 IE3 J2 IE4 IE5 Compatibility Example Listing 31-1 enables you to experiment with just one set of these properties and . The page is almost in the form of a laboratory quiz that enables you to query yourself about the values of these properties for two swappable layers. Appendix F Examples from Parts III and IV CD-573 Listing 31-1 A Layer Quiz HTML HEAD SCRIPT LANGUAGE JavaScript function checkAbove oneLayer 0 . 0 . function checkBelow oneLayer 0 . 0 . function swapLayers if else function onerror msg 0 . 0 . msg return true SCRIPT HEAD BODY H1 Layer Ordering H1 HR FORM Results INPUT TYPE text NAME output P INPUT TYPE button VALUE Who s ABOVE the Yellow layer onClick checkAbove BR INPUT TYPE button VALUE Who s BELOW the Yellow layer onClick checkBelow P INPUT TYPE button VALUE Who s ABOVE the Green layer onClick checkAbove .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã 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.