Book Image

MooTools 1.2 Beginner's Guide

Book Image

MooTools 1.2 Beginner's Guide

Overview of this book

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. If you're a newcomer to MooTools looking to build dynamic, rich, and user-interactive web site applications this beginner's guide with its easy-to-follow step-by-step instructions is all you need to rapidly get to grips with MooTools.
Table of Contents (14 chapters)
MooTools 1.2 Beginner's Guide
Credits
About the Authors
About the Reviewer
Preface

Creating the ImageCaption script


Oftentimes, you will already have a script lying around that you wish to convert to a plugin because you found yourself using it repeatedly in your projects. For beginner MooTools developers, it may be helpful to first get the functionality working, and then convert it to a flexible plugin, thus using the script as a pattern.

To begin, we'll focus on scripting the image caption function. This will also help you understand how the code works to make it easier to transition it into a MooTools plugin.