Practical prototype and scipt.aculo.us part 40

Practical prototype and part 40: The information in this book is distributed on an "as is" basis, without warranty Although every pre-caution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. | CHAPTER 10 INTRODUCTION TO EFFECTS 229 Figure 10-8. animates an element s position. 230 CHAPTER 10 INTRODUCTION TO EFFECTS handles well scaling changing the size of an element and optionally the size of its contents by a given percentage see Figure 10-9 new box 150 BOX BOX Figure 10-9. animates an element s height and width. CHAPTER 10 INTRODUCTION TO EFFECTS 231 The second argument is an integer that represents the scaling percentage. In this example the element grows to 150 percent of its original size. Note that the contents of the box have been scaled as well the text is also 150 percent bigger. also supports several optional parameters for more granular control of the effect see Figure 10-10 new box 100 scaleContent false scaleFrom scaleFromCenter true A Figure 10-10. is broadly .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
272    23    1    30-11-2024
Đã 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.