Parcourir la source

Listing 7.2: a few cycle() options.

Frederic G. MARAND il y a 9 ans
Parent
commit
45312ddf1d
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      Chapter 7/07.js

+ 5 - 1
Chapter 7/07.js

@@ -1,3 +1,7 @@
 $(document).ready(function () {
-  $('#books').cycle();
+  $('#books').cycle({
+    timeout: 2000,
+    speed: 200,
+    pause: true
+  });
 });