1 |
|
---|
2 | <ul class="UIAPIPlugin-toc">
|
---|
3 | <li><a href="#overview">Overview</a></li>
|
---|
4 | <li><a href="#options">Arguments</a></li>
|
---|
5 | </ul>
|
---|
6 | <div class="UIAPIPlugin">
|
---|
7 | <h1>jQuery UI Fade Effect</h1>
|
---|
8 | <div id="overview">
|
---|
9 | <h2 class="top-header">Overview</h2>
|
---|
10 | <div id="overview-main">
|
---|
11 | <p>Fades the element.</p>
|
---|
12 | </div>
|
---|
13 | <div id="overview-dependencies">
|
---|
14 | <h3>Dependencies</h3>
|
---|
15 | <ul>
|
---|
16 | <li>Effects Core</li>
|
---|
17 | </ul>
|
---|
18 | </div>
|
---|
19 | <div id="overview-example">
|
---|
20 | <h3>Example</h3>
|
---|
21 | <div id="overview-example" class="example">
|
---|
22 | <ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>
|
---|
23 | <p><div id="demo" class="tabs-container" rel="170">
|
---|
24 | Hides the element by fading it out.<br />
|
---|
25 | </p>
|
---|
26 | <pre>
|
---|
27 | $("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
|
---|
28 | $(this).<a href="http://docs.jquery.com/UI/Effects/hide" title="UI/Effects/hide">hide</a>("fade", {}, 1000);
|
---|
29 | });
|
---|
30 |
|
---|
31 | </pre>
|
---|
32 | <p></div><div id="source" class="tabs-container">
|
---|
33 | </p>
|
---|
34 | <pre><!DOCTYPE html>
|
---|
35 | <html>
|
---|
36 | <head>
|
---|
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 |
|
---|
40 | <script src="http://jqueryui.com/latest/ui/effects.core.js"></script>
|
---|
41 | <script src="http://jqueryui.com/latest/ui/effects.fade.js"></script>
|
---|
42 | <style type="text/css">
|
---|
43 | div { margin: 0px; width: 100px; height: 80px; background: green; border: 1px solid black; position: relative; }
|
---|
44 | </style>
|
---|
45 |
|
---|
46 | <script type="text/javascript">
|
---|
47 | $(document).ready(function(){
|
---|
48 |
|
---|
49 | $("div").<a href="http://docs.jquery.com/Events/click" title="Events/click">click</a>(function () {
|
---|
50 | $(this).<a href="http://docs.jquery.com/UI/Effects/hide" title="UI/Effects/hide">hide</a>("fade", {}, 1000);
|
---|
51 | });
|
---|
52 |
|
---|
53 | });
|
---|
54 | </script>
|
---|
55 | </head>
|
---|
56 | <body style="font-size:62.5%;">
|
---|
57 | <div></div>
|
---|
58 | </body>
|
---|
59 | </html>
|
---|
60 | </pre>
|
---|
61 | <p></div>
|
---|
62 | </p>
|
---|
63 | </div>
|
---|
64 | </div>
|
---|
65 | </div>
|
---|
66 | <div id="options">
|
---|
67 | <h2 class="top-header">Arguments</h2>
|
---|
68 | <ul class="options-list">
|
---|
69 | <p>The fade effect has no arguments</p>
|
---|
70 | </ul>
|
---|
71 | </div>
|
---|
72 | </div>
|
---|
73 |
|
---|
74 | <!--
|
---|
75 | Pre-expand include size: 3871 bytes
|
---|
76 | Post-expand include size: 4705 bytes
|
---|
77 | Template argument size: 2799 bytes
|
---|
78 | Maximum: 2097152 bytes
|
---|
79 | -->
|
---|
80 |
|
---|
81 | <!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3779-1!1!0!!en!2 and timestamp 20100128053341 -->
|
---|