JavaScript Bible, Gold Edition part 24

JavaScript Bible, Gold Edition part 24. 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. | 78 Part III Document Objects Reference The only potential problems you could encounter with your existing code have to do with a handful of properties that used to belong to the document object. In the new DOM four style-related properties of the document object alinkColor bgColor l inkColor and vlinkColor become properties of the body object referenced as . In addition the three link color properties pick up new names in the process aLink link vLink . It appears however that for now and NN6 maintain backward compatibility with the older document object color properties. Also note that the DOM specification concerns itself only with the document and its content. Objects such as window navigator and screen are not part of the DOM specification through Level 2. Scripters are still at the mercy of browser makers for compatibility in these areas but the window object likely will be added to the W3C DoM in the future. What isn t available As mentioned earlier the W3C DOM is not simply a restatement of existing browser specifications. Many convenience features of the IE and NN object models do not appear in the W3C DOM. If you develop Dynamic HTML content in IE4 or NN4 you have to learn how to get along without some of these conveniences. Navigator 4 s experiment with the LAYER tag was not successful in the W3C process. As a result both the tag and the scripting conventions surrounding it do not exist in the W3C DOM. To some scripters relief the referencing scenario even more complex with nested layers disappears from the object model entirely. A positioned element is treated as just another element that has some special style sheet attributes that enable you to move it anywhere on the page stack it amid other positioned elements and hide it from view. Among popular IE4 features missing from the W3C DOM are the collection of HTML elements and four element properties that facilitate dynamic content innerHTML innerText .

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.