tot - Difference in jquery/jquery.schedule.html versions 5 and 12
Not logged in
[Browse]  [Home]  [Login]  [Reports]  [Search]  [Timeline
  [History
Modified: jquery/jquery.schedule.html
===================================================================
--- jquery/jquery.schedule.html	2007-03-13 17:14:37 UTC (rev 11)
+++ jquery/jquery.schedule.html	2007-03-13 20:06:44 UTC (rev 12)
@@ -10,19 +10,38 @@
     <body>              
         <h1>jQuery Scheduler Plugin Demo</h1>
 
-        <div id="log">(empty log)</div>
-        <div id="test">TEST</div>
+        <div id="log1">(empty log)</div>
+        <div id="test1">TEST</div>
 
         <script type="text/javascript">
-            $(document).ready(
-                function(){
-                    $('#test').click(function () {
-                        $(this).css("color", "blue").schedule("2s", function (x) {
+            $(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");
-                            $("#log").html("x=|"+x+"|");
-                        }, 42);
+                            $("#log2").html("x=|"+x+"|");
+                        },
+                        args: [ 42 ]
                     });
+                });
             });
-         </script>
+        </script>
     </body>
 </html>