Skip to content

Category: Javascript/Jquery

Magento : Infinite Scroll for WordPress Posts Integration on Magento

i wrote some jquery script to perform infinite scroll WordPress posts on magento site, here you go

 

Leave a Comment

jQuery:Animated Scroll Back to Top

this example of jQuery snippet for animated scroll-up <a href=”#”>Back to Top</a> <script> $(document).ready(function(){ $(‘#do-nothing’).click(function(e) { $(‘body,html’).animate({“scrollTop”:0},’slow’); }); }); </script>

Leave a Comment

jQuery: Prevent Href/Hyperlink

This snippet will prevent the default behaviour of a hyperlink <a href=”#”>Go </a> <script> $(document).ready(function(){ $(‘#do-nothing’).click(function(e) { e.preventDefault(); }); }); </script>

Leave a Comment