Difference between revisions of "Template:Toc"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 5: Line 5:
 
$(document).ready(function() {
 
$(document).ready(function() {
 
  $(".ftoc").hover(function() {
 
  $(".ftoc").hover(function() {
   $(".ftoc").animate({left:'0px'}, 250, function() {
+
   $(".ftoc").stop().animate({left:'0px'}, 250, function() {
   $(".ftoc_content").fadeIn("slow");
+
   $(".ftoc_content").stop().fadeIn("slow");
 
   });
 
   });
 
  }, function() {
 
  }, function() {
   $(".ftoc_content").fadeOut("fast", function() {
+
   $(".ftoc_content").stop().fadeOut("fast", function() {
   $(".ftoc").animate({left:'-150px'}, 250);
+
   $(".ftoc").stop().animate({left:'-150px'}, 250);
 
   });
 
   });
 
  });
 
  });

Revision as of 01:49, 21 August 2014

Generates a floating Table of contents menu in a fixed position on the left hand side of the screen.