我使用 Galleria 在我的页面上出现此错误,我之前创建了一个测试页面,它运行良好。但是现在我需要在 master 的内容页面上使用它,所以当我把所有数据都带过来时,它给出了这个错误。它用图片加载列表视图,但不是画廊请帮忙
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 //EN">
<script type="text/javascript" src="../galleria/galleria-1.2.9.min.js"></script>
<script type="text/javascript" src="../galleria/themes/classic/galleria.classic.min.js"></script>
<link type="text/css" rel="stylesheet" href="../gallerai/themes/classic/galleria.classic.css" />
<style >
#galleria
{
width: 700px;
height: 400px;
background: #000;
}
</style>
<style >
.body
{
width: 700px;
height: 500px;
}
</style>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="select i.imageID, g.Title, i.[Image Title], i.[Image] from Images i, Gallery g where g.ID = i.[Gallery ID]"></asp:SqlDataSource>
<div style="width: 700px; text-align: center; height: 500px">
<div id="runPics" runat="server">
<br />
<br />
<asp:ListView ID="lstPics" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<td>
<Club:ImageThumbnail ID="ImageThumbnail2" runat="server" PhotoID='<%# Bind("imageID") %>' />
</td>
</ItemTemplate>
</asp:ListView>
</div>
</div>
<%-- <div id="galleria">
<img src="../images/1.jpg">
<img src="../images/3.jpg">
<img src="../images/4.jpg">
<img src="../images/5.jpg">
<img src="../images/6.jpg">
<img src="../images/7.jpg">
</div>--%>
<script >
//$('#gallery').galleria({
// width: 700,
// height: 400
//});
//Galleria.loadTheme('../galleria/themes/classic/galleria.classic.min.js');
Galleria.configure({
transition: 'fade'
});
Galleria.run('#runPics', {
autoplay: 5000
});
Galleria.ready(function (o) {
var gallery = this,
p = !!o.autoplay;
this.$('thumbs,more').click(function () {
gallery.pause();
});
this.$('desc,thumbnails').click(function () {
p && gallery.play();
});
});
</script>
</html>
所有这些都在 asp:content 标签之间