Team:Shenzhen BGIC 0101/scrollup

From 2013.igem.org

Revision as of 02:31, 27 August 2013 by Czh (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<script src="http://markgoodyear.com/labs/scrollup/js/lib/jquery-1.9.1.min.js"></script> <script src="http://markgoodyear.com/labs/scrollup/js/jquery.scrollUp.min.js"></script> <link rel="javascript" href="https://2013.igem.org/Team:Shenzhen_BGIC_0101/jquery.easing.min?action=raw&ctype=text/javascript" type="text/javascript" /> <style>

   #scrollUp {

bottom: 20px; right: 20px;

  }

</style> <script>

/* scrollUp Minimum setup */ // $(function () { // $.scrollUp(); // });

// scrollUp full options $(function () { $.scrollUp({ scrollName: 'scrollUp', // Element ID scrollDistance: 300, // Distance from top/bottom before showing element (px) scrollFrom: 'top', // 'top' or 'bottom' scrollSpeed: 150, // Speed back to top (ms) easingType: 'easeInOutCubic', // Scroll to top easing (see http://easings.net/) animation: 'Fade', // Fade, slide, none animationInSpeed: 200, // Animation in speed (ms) animationOutSpeed: 200, // Animation out speed (ms) scrollText: '<img src="img/top.png" style="height: 38px; width: 38px; "/>', // Text for element, can contain HTML scrollTitle: 'top', // Set a custom <a> title if required. Defaults to scrollText activeOverlay: '#478', // Set CSS color to display scrollUp active point, e.g '#00FFFF' zIndex: 138438 // Z-Index for the overlay }); });

</script>