<script src="js/jquery-1.10.2.min.js"></script> <script src="js/jquery.lazyload.js"></script> <script type="text/javascript" charset="utf-8"> $(function() { $("img.lazy").lazyload({effect: "fadeIn"}); }); </script>
<img class="lazy" src="Images/bmw_m1_hood.jpg" data-original="Images/bmw_m1_hood.jpg" /> <img class="lazy" src="Images/bmw_m1_hood.jpg" data-original="Images/bmw_m1_side.jpg" /> <img class="lazy" src="Images/bmw_m1_hood.jpg" data-original="Images/bmw_m3_gt.jpg" /> <img class="lazy" src="Images/bmw_m1_hood.jpg" data-original="Images/corvette_pitstop.jpg" /> <img class="lazy" src="Images/bmw_m1_hood.jpg" data-original="Images/viper_1.jpg" /> <img class="lazy" src="Images/bmw_m1_hood.jpg" data-original="Images/viper_corner.jpg" />
data-original:实际图片地址
src:临时图片地址