Picasa 嵌入画廊 +自定义 jQuery UI 滑块

发布于 2024-12-12 09:33:29 字数 920 浏览 0 评论 0原文

我正在尝试创建一个工具,可以滚动 Picasa 中的动态项目。 Picasa 允许嵌套文件选项,这意味着当用户浏览文件系统时会一遍又一遍地加载新项目。

我想在必要时为这个 div 创建一个自定义滚动条。 我找到了有人可以完成我想做的事情,但无法让它适合我的情况。 基本上,我需要该功能在每次加载新内容或单击特定元素时检查滚动条。

如果有人可以帮助我集成这个插件,我将非常感激。 该插件有很好的文档记录,但我仍然是 jQuery 菜鸟,所以我运气不太好。

谢谢。


jQuery UI 滑块插件: http://www.simonbattersby.com/blog/vertical- scrollbar-using-jquery-ui-slider/

嵌入 Picasa 代码片段:

jQuery(document).ready(function() {
    jQuery("#picasagallery").EmbedPicasaGallery('andreagerstmann',{
        loading_animation: 'css/loading.gif',
        size: '190',
        msg_loading_list :  'Just one moment please',
        msg_back :   'Back'
    });
});

进行中 复制: http://andreagerstmann.com/gallery.html

I am trying to create a tool that scrolls a whem dynamic items from from Picasa.
Picasa allows a nested file option which means that new items are being loaded over and over as the user navigates through the file system.

I want to create a a custom scroll bar for this div when necessary.
I have found someone working version of what I would like to do, but cannot get it to work with my situation.
Basically I need the function to check for the scroll bar every time new content loads, or on click of a specific element.

If someone could help me integrate this plugin I would be very grateful.
The plugin is very well documented but I am still a jQuery noob, so I am not having much luck.

Thanks.


jQuery UI slider plugin:
http://www.simonbattersby.com/blog/vertical-scrollbar-using-jquery-ui-slider/

Embed Picasa Snippet:

jQuery(document).ready(function() {
    jQuery("#picasagallery").EmbedPicasaGallery('andreagerstmann',{
        loading_animation: 'css/loading.gif',
        size: '190',
        msg_loading_list :  'Just one moment please',
        msg_back :   'Back'
    });
});

In Progress Copy:
http://andreagerstmann.com/gallery.html

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

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

发布评论

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

评论(2

已下线请稍等 2024-12-19 09:33:29

Patrick

滑块的这种变体是否可以满足您的需求:

http://www.simonbattersby.com/ demos/vertical_scrollbar_demo_7_addcontent.htm

在此变体中,滑块代码被包装到 setSlider() 函数中 - 因此您可以只需在 Picasa 代码完成后调用此函数即可。

西蒙

Patrick

Does this variant of the slider give you what you want:

http://www.simonbattersby.com/demos/vertical_scrollbar_demo_7_addcontent.htm

In this variant the slider code is wrapped into a setSlider() function - so you'd just need to call this function once your Picasa code is completed.

Simon

痴意少年 2024-12-19 09:33:29

我不久前使用以下方法做到了这一点:

在 ASP.NET 中加载带有无限滚动的大型数据集 (VBASPNETInfiniteLoading)
http://code.msdn.microsoft.com/VBASPNETInfiniteLoading-10c3f379

原始文章:
http://www.webresourcesdepot.com/load-content-while- scrolling-with-jquery/

工作示例:
http://www.webresourcesdepot.com/dnspinger/

    <link rel="stylesheet" href="Styles/Site.css" type="text/css" />
    <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>



    $(document).ready(function () {

       function lastPostFunc() {
           $('#divPostsLoader').html('<img src="images/bigLoader.gif">');

           //send a query to server side to present new content
           $.ajax({
               type: "POST",
               url: "Default.aspx/Foo",
               data: "{}",
               contentType: "application/json; charset=utf-8",
               dataType: "json",
               success: function (data) {

                   if (data != "") {
                       $('.divLoadData:last').after(data.d);
                   }
                   $('#divPostsLoader').empty();
               }

           })
       };

       //When scroll down, the scroller is at the bottom with the function below and fire
    the lastPostFunc function
       $(window).scroll(function () {
           if ($(window).scrollTop() == $(document).height() - $(window).height()) {
               lastPostFunc();
           }
       });

    });

I did this a while back using:

Load large dataset with infinite scroll in ASP.NET (VBASPNETInfiniteLoading)
http://code.msdn.microsoft.com/VBASPNETInfiniteLoading-10c3f379

original article:
http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/

working example:
http://www.webresourcesdepot.com/dnspinger/

    <link rel="stylesheet" href="Styles/Site.css" type="text/css" />
    <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>



    $(document).ready(function () {

       function lastPostFunc() {
           $('#divPostsLoader').html('<img src="images/bigLoader.gif">');

           //send a query to server side to present new content
           $.ajax({
               type: "POST",
               url: "Default.aspx/Foo",
               data: "{}",
               contentType: "application/json; charset=utf-8",
               dataType: "json",
               success: function (data) {

                   if (data != "") {
                       $('.divLoadData:last').after(data.d);
                   }
                   $('#divPostsLoader').empty();
               }

           })
       };

       //When scroll down, the scroller is at the bottom with the function below and fire
    the lastPostFunc function
       $(window).scroll(function () {
           if ($(window).scrollTop() == $(document).height() - $(window).height()) {
               lastPostFunc();
           }
       });

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