Picasa 嵌入画廊 +自定义 jQuery UI 滑块
我正在尝试创建一个工具,可以滚动 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'
});
});
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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
我不久前使用以下方法做到了这一点:
在 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/
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/