Friday, February 14, 2014

Script Lazy Image Loader For Website Using Jquery



<img class="lazy" data-original="imz/imgg.jpg" width="640" height="480">
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="lazy.js"></script>

<script>
$(function() {
    $("img.lazy").lazyload({
        effect:"fadeIn"
    });
});
/*$(function() {
    $("img.lazy").lazyload({threshold : 200});
});*/
</script>

 lazy.js -- Download From url:https://raw.github.com/tuupola/jquery_lazyload/master/jquery.lazyload.js
and save as lazy.js