Explorar el Código

Listing 7.2: a few cycle() options.

Frederic G. MARAND hace 9 años
padre
commit
45312ddf1d
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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
+  });
 });