2
<ul class="UIAPIPlugin-toc">
3
<li><a href="#overview">Overview</a></li>
4
<li><a href="#options">Arguments</a></li>
6
<div class="UIAPIPlugin">
7
<h1>jQuery UI show</h1>
9
<h2 class="top-header">Overview</h2>
10
<div id="overview-main">
11
<div class="editsection" style="float:right;margin-left:5px;">[<a href="http://docs.jquery.com/action/edit/UI/Effects/show?section=1" title="Edit section: show( effect, [options], [speed], [callback] )">edit</a>]</div><a name="show.28_effect.2C_.5Boptions.5D.2C_.5Bspeed.5D.2C_.5Bcallback.5D_.29"></a><h3>show( effect, <span class="optional">[</span>options<span class="optional">]</span>, <span class="optional">[</span>speed<span class="optional">]</span>, <span class="optional">[</span>callback<span class="optional">]</span> )</h3>
12
<p>The enhanced show method optionally accepts jQuery UI advanced effects.</p>
13
<p>Uses a specific effect on an element to show the element if the first argument is a effect string.</p>
15
<div id="overview-dependencies">
21
<div id="overview-example">
23
<div id="overview-example" class="example">
24
<ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
25
<p><div id="demo" class="tabs-container" rel="170">
26
Apply the effect slide if you click on the p to show a div.<br />
28
<pre>$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
29
$("div").<strong class="selflink">show</strong>("slide", {}, 1000);
32
<p></div><div id="source" class="tabs-container">
34
<pre><!DOCTYPE html>
37
<link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
38
<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
39
<script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
40
<script src="http://ui.jquery.com/latest/ui/effects.slide.js"></script>
41
<style type="text/css">
42
div { display: none; margin: 0px; width: 100px; height: 80px; background: blue; position: relative; }
44
<script type="text/javascript">
45
$(document).ready(function(){
46
$("p").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
47
$("div").<strong class="selflink">show</strong>("slide", {}, 1000);
52
<body style="font-size:62.5%;">
54
<p>Click me</p><div></div>
64
<h2 class="top-header">Arguments</h2>
65
<ul class="options-list">
67
<li class="option" id="option-effect">
68
<div class="option-header">
69
<h3 class="option-name"><a href="#option-effect">effect</a></h3>
71
<dt class="option-type-label">Type:</dt>
72
<dd class="option-type">String</dd>
76
<div class="option-description">
77
<p>The effect to be used. Possible values: 'blind', 'clip', 'drop', 'explode', 'fold', 'puff', 'slide', 'scale', 'size', 'pulsate'.</p>
82
<li class="option" id="option-options">
83
<div class="option-header">
84
<h3 class="option-name"><a href="#option-options">options</a></h3>
86
<dt class="option-type-label">Type:</dt>
87
<dd class="option-type">Hash</dd>
89
<dt class="option-optional-label">Optional</dt>
93
<div class="option-description">
94
<p>A object/hash including specific options for the effect.</p>
99
<li class="option" id="option-speed">
100
<div class="option-header">
101
<h3 class="option-name"><a href="#option-speed">speed</a></h3>
103
<dt class="option-type-label">Type:</dt>
104
<dd class="option-type">String, Number</dd>
106
<dt class="option-optional-label">Optional</dt>
110
<div class="option-description">
111
<p>A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</p>
116
<li class="option" id="option-callback">
117
<div class="option-header">
118
<h3 class="option-name"><a href="#option-callback">callback</a></h3>
120
<dt class="option-type-label">Type:</dt>
121
<dd class="option-type">Function</dd>
123
<dt class="option-optional-label">Optional</dt>
127
<div class="option-description">
128
<p>A function that is called after the effect is completed.</p>
137
Pre-expand include size: 6211 bytes
138
Post-expand include size: 8730 bytes
139
Template argument size: 5476 bytes
140
Maximum: 2097152 bytes
143
<!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:2613-1!1!0!!en!2 and timestamp 20090319004751 -->