Latest members | More ...
I have to use 2 jquery plug in in same page but only one plug in is working at a time Here is my script code <script type="text/javascript" > $(document).ready( function() { $('pre.loadme').lazyLoad(); $('pre.morestuff').lazyLoad(); } ); </script> <script> $(document).ready(function(){ // hide #back-top first $("#back-top").hide(); // fade in #back-top $(function () { $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('#back-top').fadeIn(); } else { $('#back-top').fadeOut(); } }); // scroll body to 0px on click $('#back-top a').click(function () { $('body,html').animate({ scrollTop: 0 }, 800); return false; }); }); }); </script>
Donraza007@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator
Write New Post | More ...