TAILIEUCHUNG - JavaScript Bible, Gold Edition part 26

JavaScript Bible, Gold Edition part 26. 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. | 98 Part III Document Objects Reference Of the three models NN4 s DOM is the trickiest one to deal with at the HTML level. While it may be possible that your content design will look the same using positioned DIV and SPAN elements in all DHTML-capable browsers often the appearance in NN4 is unacceptable. At that point you will probably have to use scripts in your Body to dynamically generate HTML specifying the LAYER tag for NN4 and positioned DIV elements for the rest. Note Although IE4 and can use the same basic Microsoft object model not all DHTML code renders the same on both generations of browsers. Microsoft made some changes here and there to the way some style attributes are rendered so that comes into better compliance with the CSS recommendation. Using script libraries As long as you plan to use scripts to dynamically generate HTML for the page you might consider creating separate external .js libraries for each of the object models you want to support for the page. Scripts in each library contain code for both the HTML accumulation for use with in the main page and for processing user interaction. Assuming that only DHTML-capable browsers reach the page branching is required only at the beginning of the document where an object model-specific library is loaded var isIE4 Microsoft 0 parseInt 4 var isW3C true false if isW3C give priority to W3C model for SCRIPT LANGUAGE JavaScript SRC SCRIPT else if isIE4 SCRIPT LANGUAGE JavaScript SRC SCRIPT else SCRIPT LANGUAGE JavaScript SRC SCRIPT Each of the statements that writes the SCRIPT tag includes a workaround that is required on some browsers NN4 especially to facilitate using to write script tags to the page. Once these libraries are specified for the page script statements anywhere later in the page can .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.