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

Time for action—creating a basic download page for the ImageCaption plugin


We're going to create a simple HTML web page where we can offer the ImageCaption plugin for download. We will borrow the content structure from the Official MooTools docs, so that MooTools users will be familiar with the documentation we're about to write.

  1. Create a new HTML document. You can use the following markup as an HTML template of your plugin's download page.

    <body>
    <h1>PluginName</h1>
    <p>Description of the plugin.</p>
    <h2>Notes: </h2>
    <ul>
    <li>Note #1</li>
    <li>Note #2</li>
    </ul>
    <h2>Extends: </h2>
    <p>MooTools classes that plugin extends.</p>
    <h2>Syntax: </h2>
    <pre>example code usage
    </pre>
    <h2>Arguments:</h2>
    <ol>
    <li>argument #1 - (data type) Brief description.</li>
    <li>argument #2 - (data type) Brief description.</li>
    </ol>
    <h3&gt...