更新时间:2021-04-02 20:14:37
封面
版权信息
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Time for action - heading
Reader feedback
Customer support
Chapter 1. Writing JavaScript with MooTools
Writing unobtrusive JavaScript with MooTools
Time for action - rewriting our script unobtrusively
Creating MooTools classes
Time for action - creating an instance of Dog
Time for action - giving our class instance some custom options
Time for action - determining the value of our options
Time for action - extending the ShowDog class with the Dog class
Using MooTools classes
Time for action - create a chain of Fx.Tween methods
Summary
Chapter 2. Selecting DOM Elements
MooTools and CSS selectors
Working with the $() and $$() functions
Time for action - selecting an element with the dollar function
Time for action - selecting elements with the dollars function
Time for action - selecting multiple sets of elements with the dollars function
Selection using pseudo-classes
Time for action - using pseudo-classes to zebra stripe a table
Working with attribute selectors
Time for action - using = attribute selector
Chapter 3. Bringing Web Pages to Life with Animation
MooTools' Fx class
Animating a CSS property with Fx.Tween
Time for action - creating a hide/show FAQ page
Time for action - toggling the visibility of a div
Time for action - fading an image in and out
Time for action - indicating blank form fields that are required
Animating multiple CSS properties with Fx.Morph
Time for action - enlarging an image
Time for action - experimenting with morph
Other Fx methods
Index