| Current Path : /home/etiennec/www/oldsite/lib/jquery-ui-1.8.9/docs/ |
| Current File : /home/etiennec/www/oldsite/lib/jquery-ui-1.8.9/docs/effect-explode.html |
<ul class="UIAPIPlugin-toc">
<li><a href="#overview">Overview</a></li>
<li><a href="#options">Arguments</a></li>
</ul>
<div class="UIAPIPlugin">
<h1>jQuery UI Explode Effect</h1>
<div id="overview">
<h2 class="top-header">Overview</h2>
<div id="overview-main">
<p>Explodes or implodes the element into/from many pieces. </p>
</div>
<div id="overview-dependencies">
<h3>Dependencies</h3>
<ul>
<li>Effects Core</li>
</ul>
</div>
<div id="overview-example">
<h3>Example</h3>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<p><div id="demo" class="tabs-container" rel="170">
Hides the element by exploding it into 9 pieces.<br />
</p>
<pre>
$("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<a href="http://docs.jquery.com/UI/Effects/hide" title="UI/Effects/hide">hide</a>("explode", 1000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<style type="text/css">
div { margin: 0px; width: 100px; height: 80px; background: green; border: 1px solid black; position: relative; }
</style>
<script>
$(document).ready(function() {
$("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<a href="http://docs.jquery.com/UI/Effects/hide" title="UI/Effects/hide">hide</a>("explode", 1000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<div></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
<div id="overview-example" class="example">
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
<div id="demo" class="tabs-container" rel="170">
Shows the element by imploding it from 16 pieces.<br />
</p>
<pre>
$("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<a href="http://docs.jquery.com/UI/Effects/show" title="UI/Effects/show">show</a>("explode", { pieces: 16 }, 2000);
});
</pre>
<p></div><div id="source" class="tabs-container">
</p>
<pre><!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.core.js"></script>
<script src="http://dev.jquery.com/view/tags/ui/latest/ui/effects.explode.js"></script>
<style type="text/css">
div { margin: 0px; width: 100px; height: 80px; background: green; border: 1px solid black; position: relative; }
</style>
<script>
$(document).ready(function() {
$("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
$(this).<a href="http://docs.jquery.com/UI/Effects/show" title="UI/Effects/show">show</a>("explode", { pieces: 16 }, 2000);
});
});
</script>
</head>
<body style="font-size:62.5%;">
<div></div>
</body>
</html>
</pre>
<p></div>
</p><p></div>
</div>
</div>
<div id="options">
<h2 class="top-header">Arguments</h2>
<ul class="options-list">
<li class="option" id="option-mode">
<div class="option-header">
<h3 class="option-name"><a href="#option-mode">mode</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">String</dd>
</dl>
</div>
<div class="option-description">
<p>The mode of the animation. Can be set to "show" or "hide".</p>
</div>
</li>
<li class="option" id="option-pieces">
<div class="option-header">
<h3 class="option-name"><a href="#option-pieces">pieces</a></h3>
<dl>
<dt class="option-type-label">Type:</dt>
<dd class="option-type">Integer</dd>
<dt class="option-default-label">Default:</dt>
<dd class="option-default">9</dd>
</dl>
</div>
<div class="option-description">
<p>Number of pieces to be exploded to/imploded from.</p>
</div>
</li>
</ul>
</div>
</div>
</p><!--
Pre-expand include size: 8604 bytes
Post-expand include size: 10870 bytes
Template argument size: 6538 bytes
Maximum: 2097152 bytes
-->
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2618-1!1!0!!en!2 and timestamp 20110119070242 -->