/
home
/
shalala
/
qa.caralivro.com
/
ajax_email
/
Upload File
HOME
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> MooTools Demos </title> <link rel="stylesheet" href="/assets/blueprint/screen.css" type="text/css" media="screen, projection" /> <link rel="stylesheet" href="/assets/blueprint/print.css" type="text/css" media="print" /> <!--[if IE]><link rel="stylesheet" href="/assets/blueprint/lib/ie.css" type="text/css" media="screen, projection" /><![endif]--> <link rel="stylesheet" href="/assets/styles/main.css" type="text/css" media="screen" /> <script type="text/javascript"> //<![CDATA[ window.demo_path = '/'; //]]> </script> <script type="text/javascript" src="/demos/mootools.js"> </script> <script type="text/javascript" src="/assets/scripts/site.js"> </script> </head> <body> <div class="container"> <div id="header"> <h1> MooTools Demos </h1> </div> <div id="navigation" class="column span-4"> <div class="notice"> <h6> How demos work? </h6> <p class="last"> Please, make sure to read the <a href="/">front page</a>. </p> </div> <div class="notice"> <h6> Demos 1.11 </h6> <p class="last"> You can navigate through old 1.11 demos <a href="http://demos111.mootools.net">from here</a>. </p> </div> <h4> Basics </h4> <div> <a href='/Native'>Extending Natives</a> </div> <h4> Events </h4> <div> <a href='/Element.Event'>Events Basis</a><a href='/CustomEvents'>Custom Events</a><a href= '/Mouseenter'>Mouseenter</a> </div> <h4> Effects </h4> <div> <a href='/Effects'>Effects Basis</a><a href='/Fx.Slide'>Fx.Slide</a> </div> <h4> Requests </h4> <div> <a href='/Request'>Request</a><a href='/Request.HTML'>HTML Request</a><a href='/Request.JSON'>JSON Request</a><a href='/Form.Send'>Form.Send</a> </div> <h4> Plugins </h4> <div> <a href='/Accordion'>Accordion</a><a href='/Slider'>Slider</a><a href= '/Sortables'>Sortables</a><a href='/Dynamic.Sortables'>Dynamic Sortables</a> </div> </div> <div id="main" class="column l-border span-19 last demo"> <h2> Getting started using demos </h2> <p> The demos are provided here to give users an idea of how MooTools works. The worst thing you can do is to copy and paste code from the demos without understanding how it works. Instead, these demos aim to show you live examples of how the framework is used properly so you can understand the code and have fun playing with it. This doesn't mean you cannot copy the demos verbatim, but we will be more inclined to help if we determine that you understand not only how to copy and paste, but also how the demos work. The demos that work here should also work for you, so if they don't, try to solve your problem before asking for one of the developers to fix it for you. </p> <h2> Demos organization </h2> <p> All demos are all organized in the same way. On every demo's page you will find a navigation bar (see image below) and often information about its usage. </p> <p> The navigation bar is composed by 4 links: docs references, js code, html code and css code. </p> <p class="box clear"> <img src="/assets/images/navbar.gif" alt="[navigation bar]" width="471" height="37" /> </p> <ul class="start"> <li>The <span class="title">docs references</span> provides links to the documentation for all the MooTools functions and Classes the demo is using. </li> <li>The <span class="title">js code</span> contains the JavaScript code of the demo.<br /> <strong>NOTE:</strong> All demos EXCEPT <a href="//DomReadyVS.Load">DomReadyVS.Load</a> are wrapped inside a "domready" which is not included in the <em>js code</em> you see. (You can see it by viewing at page's actual source code). This means the following is the actual content of the page:<br /> <br /> <div id="js" class="code"> window.addEvent('domready', function() { // HERE IS WHAT YOU READ IN JS CODE });", 'javascript'); </div>If you are going to reproduce the demo, remember the domready event! (More info about this topic is available <a href="http://docs.mootools.net/Window/Window-DomReady.js#domready">here</a> and <a href="http://clientside.cnet.com/wiki/mootorial/04-window#window.addevent">here</a>). </li> <li>The <span class="title">html code</span> is simply the portion of the HTML in the page that is specific to the demo. </li> <li>The <span class="title">css code</span> is simply the portion of the page's CSS that is relevant to the demo. </li> </ul> <p> </p> <p> <strong>Note:</strong> <span class="title">Why DomReadyVS.Load is different?</span> DomReadyVS.Load attends to show you the difference between MooTools' custom domready event and the native onload event. Having a domready inserted into another domready would not provide the desired result. </p> <h2> Final notes </h2> <p> All of the demos listed here use the latest MooTools release. If you find a bug (and that means something wrong with one of the demos here), please report it in the forum. Also, before asking for any help, do yourself and the developers a favor and try to first understand the code, read the <a href="http://clientside.cnet.com/wiki/mootorial">mootorial</a>, read the <a href= "http://docs.mootools.net/">documentation</a> and read <a href= "http://blog.mootools.net/2007/6/5/help-i-dont-know-javascript">Michelle's article</a>. If none of this helps, please come ask us in the forums. </p> <p> </p> <p> We hope you enjoy our demos. </p> <p> The MooTools Development Team. </p> </div> <div id="footer" class="column clear span-24"> <p> This documentation is released under a <a href= "http://creativecommons.org/licenses/by-nc-sa/3.0/">Attribution-NonCommercial-ShareAlike 3.0</a> License. </p> </div> </div> </body> </html>