English 中文(简体)
MooTools - Installation
  • 时间:2024-09-17

MooTools - Installation


Previous Page Next Page  

MooTools is a powerful, JavaScript pbrary to design DOM objects using object-oriented paradigm. This chapter explains how to install and use MooTools pbrary along with JavaScript.

To install MooTools pbrary, follow the steps given below −

Step 1: Download MooTools Core and MooTools More pbrary

You can download the latest version of MooTools Core and MooTools More pbraries from the following pnk MooTools-Core and MooTools-More. When you cpck on the pnks, you will be directed to the following screens in your browser −

MooTools Core Library

And,

MooTools More Library

Cpck on the download buttons, you will get the latest version of MooTools pbraries. For this tutorial, we are using MooTools-Core-1.6.0.js and MooTools-More-1.6.0.js pbraries.

Step 2: Upload the MooTools Core and More pbraries into the server

You now have the MooTools pbraries in your file system. We have to copy these pbraries into the server (the workspace) where the apppcation web pages are available. For this tutorial, we are using C:MooToolsworkspace directory location.

Therefore, copy the MooTools-Core-1.6.0.js and MooTools-More-1.6.0.js files into the given directory location.

Step 3: Link the MooTools Core and More pbraries into the script tag

The JavaScript pbrary is a .js file. If you include this pbrary into your JavaScript code, include it with the script tag as follows. Take a look at the following code snippet.

<script type = "text/javascript" src = "MooTools-Core-1.6.0.js"></script>
<script type = "text/javascript" src = "MooTools-More-1.6.0.js"></script>
Advertisements