【发布时间】:2010-04-27 21:31:34
【问题描述】:
我正在将 Galleria 插件用于页面上的图片库,此页面使用 ajax 加载到框架页面中,这是 ajax
$(document).ready(function() {
function loadTab(pageUrl)
{
$.ajax(
{
url: pageUrl,
cache: true,
success: function(load)
{
$("#tabcontent").empty().append(load);
}
});
}
$(document).ready(function()
{
$("#tab1").ready(function()
{
loadTab("acasa.html");
});
$("#tab1").click(function()
{
loadTab("acasa.html");
});
$("#tab2").click(function()
{
loadTab("desprenoi.html");
});
$("#tab3").click(function()
{
loadTab("servici.html");
});
$("#tab4").click(function()
{
loadTab("parteneri.html");
});
$("#tab5").click(function()
{
loadTab("galerie.html");
});
$("#tab6").click(function()
{
loadTab("contact.php");
});
});
});
在框架页面上 Im using Infinite gallery that uses <ul></ul> tags my problem is that offline, testing the page it works 完美,但在服务器(在线)上,使用 Galleria 的画廊去了狗。我的意思是我有一个所有图像的列表而不是画廊。
附:谁能帮我找到一个更好的 ajax 脚本:D
你可以在这里找到在线版本[link text][1]
【问题讨论】:
标签: jquery ajax galleria infinite infinite-carousel