Javascript bible_ Chapter 42

Tham khảo sách 'javascript bible_ chapter 42', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Netscape Dynamic HTML and JavaScript Extensions While Netscape Navigator 4 provides support for the Cascading Style Sheets Level 1 recommendation by W3C the company created its own implementation of style sheets sometimes called JavaScript Style Sheets or JSS s. It s not that these style sheets become part of the scripts in your document but rather they adopt many of the syntactical traditions of JavaScript. This is in contrast to the new syntax characterized by the property-value pair of CSS1. In the arena of dynamically positionable objects Navigator 4 adheres in part to the CSS-P recommendation and also offers a new HTML tag the LAYER tag to create such objects. This chapter introduces the JavaScript language extensions employed by JavaScript Style Sheets. Because this is not the same kind of scripting that you ve been reading about in this book the coverage is intended merely to acquaint you with the syntax in case you are not aware of it. More coverage is accorded the positioning aspects of the LAYER tag because these items are scriptable from your regular scripts. At the end of the chapter I provide a Navigator-specific version of the map puzzle game demonstrated in cross-platform format in Chapter 41. JavaScript Styles As with Cascading Style Sheets JavaScript Style Sheets define layout characteristics for the content of an HTML tag. A style defines how the browser renders the page as it loads. Any adjustment to the content after the page loads requires scripting beyond the scope of style sheets. If you are familiar with Cascading Style Sheets as defined in the published W3C specification available at http pub WWW TR REC-CSS1 you know In This Chapter JavaScript style sheets Dynamic positioning The map game tailored for Navigator 4 876 Part IV Putting JavaScript to Work that a typical way for a style sheet to be defined is with the STYLE tag whose TYPE attribute is text css as follows STYLE TYPE text css H1 color red STYLE Rules inside the style .

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.