Forráskód Böngészése

Listing 6.16: fadeIn() on load().

Frederic G. MARAND 9 éve
szülő
commit
55471653ee
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      Chapter 6/06.js

+ 3 - 1
Chapter 6/06.js

@@ -3,7 +3,9 @@ $(document).ready(function () {
 
   $('#letter-a a').click(function (event) {
     event.preventDefault();
-    $('#dictionary').load('a.html');
+    $('#dictionary').hide().load('a.html', function () {
+      $(this).fadeIn();
+    });
   });
 
   $('#letter-b a').click(function (event) {