4
<title>jQuery UI Resizable - Delay start</title>
5
<link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
6
<script type="text/javascript" src="../../jquery-1.3.2.js"></script>
7
<script type="text/javascript" src="../../ui/ui.core.js"></script>
8
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
9
<link type="text/css" href="../demos.css" rel="stylesheet" />
10
<style type="text/css">
11
#resizable, #resizable2 { width: 150px; height: 150px; padding: 0.5em; }
12
#resizable h3, #resizable2 h3 { text-align: center; margin: 0; }
14
<script type="text/javascript">
16
$("#resizable").resizable({
20
$("#resizable2").resizable({
29
<h3 class="docs">Time delay (ms):</h3>
30
<div id="resizable" class="ui-widget-content">
31
<h3 class="ui-widget-header">Time</h3>
34
<h3 class="docs">Distance delay (px):</h3>
35
<div id="resizable2" class="ui-widget-content">
36
<h3 class="ui-widget-header">Distance</h3>
39
<!-- ADD DISTANCE DEMO -->
41
</div><!-- End demo -->
43
<div class="demo-description">
45
<p>Delay the start of resizng for a number of milliseconds with the <code>delay</code> option; prevent resizing until the cursor is held down and dragged a specifed number of pixels with the <code>distance</code> option.</p>
47
</div><!-- End demo-description -->