Difference between revisions of "Template:Toc"
From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 1: | Line 1: | ||
− | |||
− | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | $(".ftoc").hover(function() { | + | $(document).ready(function() { |
− | + | $(".ftoc").hover(function() { | |
− | } | + | $(this).animate({left:0}, 1000); |
− | + | } else { | |
− | } | + | $(this).animate({left:-250}, 1000); |
+ | }); | ||
}); | }); | ||
</script> | </script> | ||
− | </noinclude> | + | <noinclude>Generates a floating Table of contents menu in a fixed position on the left hand side of the screen.</noinclude> |
<includeonly> | <includeonly> | ||
<div class="ftoc">__TOC__</div> | <div class="ftoc">__TOC__</div> | ||
</includeonly> | </includeonly> |
Revision as of 22:10, 20 August 2014
<script type="text/javascript"> $(document).ready(function() {
$(".ftoc").hover(function() {
$(this).animate({left:0}, 1000);
} else {
$(this).animate({left:-250}, 1000);
});
}); </script> Generates a floating Table of contents menu in a fixed position on the left hand side of the screen.