TAILIEUCHUNG - JavaScript Bible, Gold Edition part 67

JavaScript Bible, Gold Edition part 67. 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. | 508 Part III Document Objects Reference Depending on the type and size of image you will be amazed at the speedy response of this kind of loading. With small-palette graphics the image displays instantaneously. A popular user-interface technique is to change the appearance of an image that represents a clickable button when the user rolls the mouse pointer atop that art. This action assumes that a mouse event fires on an element associated with the object. Prior to IE4 and NN6 IMG element objects did not respond to mouse events on their own. The required technique was to encase the IMG element inside an A element. This allowed the events associated with rollovers onMouseOver and onMouseOut and a user click on the image to effect some change usually to navigate to another page . While IE4 and NN6 provide these events directly for IMG element objects you can guarantee your pages to be backward-compatible if you continue to surround your images with A elements. You can see examples of these kinds of actions in Chapters 12 and 22. Image rollovers are most commonly accomplished in two different image states normal and highlighted. But you may want to increase the number of states to more closely simulate the way clickable buttons work in application programs. In some instances a third state signifies that the button is switched on. For example if you use rollovers in a frame for navigational purposes and the user clicks a button to navigate to the Products area that button stays selected but in a different style than the rollover highlights. Some designers go one step further by providing a fourth state that appears briefly when the user mouses down an image. Each one of these states requires the download of yet another image so you have to gauge the effect of the results against the delay in loading the page. The speed with which image swapping takes place may lead you to consider using this method for animation. Though this method may be practical for brief bursts of

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.