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—installing Fx.Accordion


Before we proceed any further in our exploration of MooTools plugins, we should first learn how to install them in our HTML documents.

  1. To start, create an HTML document and reference the MooTools Core library's location in the<head> section. Make sure that the file path in the src attribute is pointing to the correct location.

    <html>
    <head>
    <script type="text/javascript" src="/filelocationofscript"></script>
    </head>
    <body>
    …
    </body>
    </html>
    
  2. Next, include the More library that you downloaded earlier, right beneath the Core library.

    <html>
    <head>
    <script type="text/javascript" src="/filelocationofscript"> </script>
    <script type="text/javascript" src="mootools-1.2.3.1-more.js"> </script>
    </head>
    <body>
    …
    </body>
    </html>
    
  3. Finally, create another<script> tag pair where you will insert your own MooTools code, right below the inclusion of the...