无法让 JQtouch 中的图片库正常工作

发布于 2024-11-14 01:00:45 字数 680 浏览 5 评论 0原文

我在 jqt 应用程序上遇到了障碍。它几乎全部建造了 画廊只是拒绝工作。我尝试的每个 jquery 图片库 实施最终得到相同的结果:无法加载资源。

我有一个从 RSS 源动态创建的图像列表。这 结构的布局如下:

<div id="galleria">
 <a href="Image1.jpg"> <img src="thumb1.jpg"></a>
 <a href="Image2.jpg"> <img src="thumb2.jpg"></a>
 <a href="Image3.jpg"> <img src="thumb3.jpg"></a>
</div

<script type="text/javascript">
// Load the classic theme
Galleria.loadTheme('galleria.classic.js');
// Initialize Galleria
$('#galleria').galleria();
</script>

我目前正在使用 Galleria,但每个都发生了同样的事情 我尝试过的其他画廊脚本(来自 Safari 开发者控制台):

找不到动画。使用左滑:jqtouch.js:104 无法加载资源:image1.jpg

I've hit a road block on jqt app. Its pretty much all built the
gallery is just refusing to work. Every jquery image gallery I try to
implement end up with the same result: Failed to Load Resource.

I've got a list of Images dynamically created from an RSS feed. The
structure is layed out like so:

<div id="galleria">
 <a href="Image1.jpg"> <img src="thumb1.jpg"></a>
 <a href="Image2.jpg"> <img src="thumb2.jpg"></a>
 <a href="Image3.jpg"> <img src="thumb3.jpg"></a>
</div

<script type="text/javascript">
// Load the classic theme
Galleria.loadTheme('galleria.classic.js');
// Initialize Galleria
$('#galleria').galleria();
</script>

I'm currently using galleria but the same thing happened with every
other gallery script I have tried(from Safari developer console):

Animation could not be found. Using slideleft: jqtouch.js:104
Failed to load resource: image1.jpg

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

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

发布评论

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

评论(1

温柔一刀 2024-11-21 01:00:45

您尝试过哪些画廊库?您是否遇到过 jQT 照片扩展(请参阅演示)?

看看“照片库”和“照片库2”。如果您只想要照片和一些标题,设置应该相当简单:

jQT.generateGallery("pageID",
    [
    {src:"http://www.site.com/somepic.jpg"},
    {src:"pic1.jpg",caption:"Test Image 1"}
    ],
    {defaultIndex:1}
);

记住包含 jQT 照片扩展文件:jqt.photo.jsjqt.photo.css

What gallery libraries have you tried? Have you come across the jQT photo extension (see the demo)?

Take a look at "Photo Gallery" and "Photo Gallery 2". If you just want to have photos and some captions, it should be fairly simple to set up:

jQT.generateGallery("pageID",
    [
    {src:"http://www.site.com/somepic.jpg"},
    {src:"pic1.jpg",caption:"Test Image 1"}
    ],
    {defaultIndex:1}
);

Remember to include the jQT photo extension files: jqt.photo.js and jqt.photo.css.

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