Mootools 1.2 Beginners Guide LITE: Getting started
Formats:
save 15%!
save 33%!
Free Shipping!
| Also available on: |
|
- Specifically chosen content to get you started with Mootools as quickly as possible
- Packed with step-by-step examples to get you doing and learning straight away
Book Details
Language : EnglishPaperback : 102 pages [ mm x mm ]
Release Date : May 2011
ISBN : 1849516243
ISBN 13 : 9781849516242
Author(s) : Jacob Gube, Garrick Cheung
Topics and Technologies : Lite Editions
Table of Contents
PrefaceChapter 1: Writing JavaScript with MooTools
Chapter 2: Selecting DOM Elements
Chapter 3: Bringing Web Pages to Life with Animation
Index
- Chapter 1: Writing JavaScript with MooTools
- Writing unobtrusive JavaScript with MooTools
- An "obtrusive" JavaScript example
- What's so bad about it?
- Don't repeat it if you don't have to
- It'll be hard to maintain
- It's a bad practice to have functionality in your content structure
- Time for action – rewriting our script unobtrusively
- Removing our inline event handlers
- Using the DOM to handle events
- Creating MooTools classes
- What the heck is a class?
- Real-world analogy
- Creating a MooTools class
- The Implements property
- 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
- Extending classes
- Time for action – extending the ShowDog class with the Dog class
- Class inheritance
- Using MooTools classes
- The concept of chainability
- The Chain class
- A Chain example
- A look ahead: Chaining Fx .Tween
- Time for action – create a chain of Fx.Tween methods
- Isn't MooTools classy?
- Chainability
- Summary
- Chapter 2: Selecting DOM Elements
- MooTools and CSS selectors
- Working with the $() and $$() functions
- The $() dollar function
- The $$() dollars function
- When to use which
- 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
- $() versus document.getElementById()
- Selecting multiple sets of elements
- Common errors with the dollar and dollars functions
- Selection using pseudo-classes
- Pseudo-class example: Zebra striping a table
- Time for action – using pseudo-classes to zebra stripe a table
- Other pseudo-class selectors
- Working with attribute selectors
- Attribute selector operators
- Attribute selector example: Styling different types of links
- Time for action – using = attribute selector
- Time for action – using != attribute selector
- Time for action – using ^= attribute selector
- Time for action – using $= attribute selector
- Attribute selector case sensitivity
- DOM selection makes unobtrusive JavaScript do-able
- Summary
- Chapter 3: Bringing Web Pages to Life with Animation
- MooTools' Fx class
- Basic syntax
- Fx options
- Animating a CSS property with Fx.Tween
- Time for action - creating a hide/show FAQ page
- Tweening a single CSS property using the tween() method
- Time for action – toggling the visibility of a div
- Fading elements
- Time for action - fading an image in and out
- Highlighting elements
- Time for action - indicating blank form fields that are required
- Animating multiple CSS properties with Fx.Morph
- Time for action - enlarging an image
- Using the morph() shortcut method
- Time for action - experimenting with morph
- Other Fx methods
- Starting an effect
- Setting properties immediately
- Cancelling a transition
- Pausing effect
- Resuming a paused effect
- Summary
Jacob Gube
Garrick Cheung
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Sorry, there are currently no downloads available for this title.
![]() |
![]() |
Lite EditionLearn more |
Full EditionLearn more |
|
|---|---|---|
| Specifically chosen content to get you started with Mootools as quickly as possible |
||
| Packed with step-by-step examples to get you doing and learning straight away | ||
| eBook available as PDF downloads | ||
| eBook available as ePub downloads | ||
| Available on PacktLib | ||
| Packed with examples for all the topics you need to get developing with Mootools | ||
| Make your web applications more dynamic and user-interactive with AJAX |
| Price | $19.99 |
$39.99 |
|---|
- How to write JavaScript with Mootools
- Selecting and controlling web page elements
- Bringing web pages to life with animation
MooTools is a simple-to-use JavaScript library, ideal for people with basic JavaScript skills who want to elevate their web applications to a superior level.
Do not discuss the cut down nature of this book. Focus only on what the book is, not where it came from.
If you're a newcomer to MooTools and want to take your first steps, this is the book for you. With easy-to-follow step-by-step instructions, you’ll find what you need to get you going, and comfortable with how you get there. The information in this book has been specifically chosen to get you into the world of Web 2.0 as easily as possible.
To find out more about upgrading to the full edition, visit www.packtpub.com/lite-editions and log into your account for offers and help. If you don’t have an account on PacktPub.com, visit today and set one up!
This is a Packt Beginner's Guide, which means it is packed with clear step-by-step instructions for performing the most useful tasks in MooTools. You will learn by doing and you will start learning immediately.
This book is perfect for MooTools newcomers. You do not require any familiarity with MooTools whatsoever, only a willingness to learn. Basic knowledge of JavaScript syntax and concepts is the only requirement. This book will allow you to grasp the basics of MooTools so that you will be well on the way to creating exciting, customizable web pages and applications.



