Before we proceed any further in our exploration of MooTools plugins, we should first learn how to install them in our HTML documents.
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 thesrc
attribute is pointing to the correct location.<html> <head> <script type="text/javascript" src="/filelocationofscript"></script> </head> <body> … </body> </html>
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>
Finally, create another
<script>
tag pair where you will insert your own MooTools code, right below the inclusion of the...