datalist加js怎么做出图片切换的效果啊,跪求,找了很久都没找到额
datalist加js怎么做出图片切换的效果啊,跪求,找了很久都没找到额
------解决方案--------------------
<!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 runat="server">
<title></title>
<script src="Scripts/jquery.js" type="text/javascript"></script>
<script src="Scripts/jquery.lazyload.min.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<script type="text/javascript">
$(document).ready(function () {
$("#dgImages img").lazyload({
placeholder: "images/ajax-loader.gif",
effect: "fadeIn"
});
});
</script>
<asp:DataList ID="dgImages" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" RepeatLayout="Table">
<ItemTemplate>
<img src='<%# Eval("photos")%>' width="100px" height="100px" />
</ItemTemplate>
</asp:DataList>
</form>
</body>
</html>