代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery图片切换与jquery lazyload图片延迟加载插件结合特效</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery.lazyload.mini.js"></script>
<script type="text/javascript">
$(function(){
$(".goods_list").find("img").lazyload({effect : "fadeIn",placeholder : "images/color3.gif" });
});
</script>
</head>
<body>
<div class="demo">
<h1><strong>滚动你的小鼠标会有惊喜哦!</strong>
<div class="goods_list">
<img src="images/1.jpg" style="width:300px; height:200px; "/>
<div style="height:800px;"></div>
<img original="images/1.jpg" style="width:300px; height:200px; margin-bottom:600px;"/>
<img original="images/2.jpg" style="width:300px; height:200px;" />
</div>
</div>
</body>
</html>
部署相应js image文件。在chrome中打开network即可看见图片延迟加载效果如下: