jquery/jquery.schedule.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>jQuery Scheduler Plugin Demo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://jquery.com/src/jquery-latest.pack.js"></script>
<script type="text/javascript" src="jquery.schedule.js"></script>
</head>
<body>
<h1>jQuery Scheduler Plugin Demo</h1>
<div id="log1">(empty log)</div>
<div id="test1">TEST</div>
<script type="text/javascript">
$(document).ready(function(){
$('#test1').click(function () {
$(this).css("color", "blue").schedule("2s", function (x) {
$(this).css("color", "red");
$("#log1").html("x=|"+x+"|");
}, 42);
});
});
</script>
<p/>
<div id="log2">(empty log)</div>
<div id="test2">TEST</div>
<script type="text/javascript">
$(document).ready(function(){
$('#test2').click(function () {
$(this).css("color", "blue").schedule({
time: "2s",
func: function (x) {
$(this).css("color", "red");
$("#log2").html("x=|"+x+"|");
},
args: [ 42 ]
});
});
});
</script>
</body>
</html>