Galleria 和 Infinite 轮播和 ajax

发布于 2024-08-31 04:59:41 字数 1168 浏览 4 评论 0原文

我正在页面上使用 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"); 
    }); 



});
});

在框架页面上我正在使用使用

    的无限图库我的问题是,离线时,测试页面它工作完美,但在服务器(在线)上,使用画廊的画廊就不行了。我的意思是我有所有图像的列表而不是图库。

    PS 大家能帮我找到一个更好的 ajax 脚本吗 :D

    你可以在这里找到在线版本[link text][1]

    I am using Galleria plugin for a image gallery on a page this page is loaded in a frame page using ajax this is the 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"); 
        }); 
    
    
    
    });
    });
    

    On the frame page Im using Infinite gallery that uses <ul></ul> tags my problem is that offline, testing the page it works perfect but on the server(online) the gallery using galleria goes to the dogs. What I mean is that I have in stead of the gallery the a list of all the images.

    P.S. Can enyone help me find a better ajax script :D

    You can find the online wersion here[link text][1]

    如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

    扫码二维码加入Web技术交流群

    发布评论

    需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

    评论(1

    凉城已无爱 2024-09-07 04:59:41

    是的,我是个白痴,因为没有问题,但我已经根据剧本定位了

    我是个白痴吗?我是。

    Yes I an a Idiot because there was no problem but I have positioned rong the script`s

    Am I a nube? Yes I am.

    ~没有更多了~
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文