Galleria 的间歇性问题

发布于 2024-10-13 04:38:59 字数 670 浏览 3 评论 0原文

我的画廊是喜怒无常的,有时有效,有时无效。我本来打算将画廊放入我的网站中,并且已将其启动并运行,但由于某些奇怪的原因,它非常不稳定,并且只有在页面加载完成之前快速转到选项卡 2 上的画廊时,它才有效!我在 Safari 和 Firefox 上尝试过这个,得到了同样的结果(我的网站似乎不能在 IE 上运行,布局都是错误的)。

我的网站是“http://www.milltownyourlocalchurch.com/”,以防您需要查看可能有助于解决此问题的 html。如果您加载页面并在页面加载之前快速转到选项卡 2(画廊位于底部),那么它将显示正常。但是,如果您让页面完全完成加载,然后转到图库,它将不会显示。这让我相信页面加载中有一些东西会敲击画廊。

还有其他人遇到过这个问题或者知道如何解决吗?

Galleria 在“head”标签中声明

<script src="js/galleria.js"></script>
<script>Galleria.loadTheme('classic/galleria.classic.js');</script>

,并且代码也添加在 body 部分中

<script>$('.galleria').galleria();</script>

My Galleria is temperamental, sometimes it works, sometimes it doesnt. I was going to put galleria into my website and I had it up and running but for some strange reason it is very temperamental and it only works if you quickly go the gallery on tab 2 before the page finishes loading! Ive tried this on Safari and Firefox and get same story (My site doesnt seem to run on IE, the layout is all wrong).

My website is "http://www.milltownyourlocalchurch.com/", in case you need to look at the html which might help solve this problem. If u load the page and quickly go to tab 2 before the page loads (which is were the gallery is, at the bottom), then it will show ok. BUT, if u let the page completely finish loading then go to the gallery it will not have displayed. This leads me to believe there is something in the page load that knocks of the galleria.

Has anyone else had this problem or know how to fix it??

Galleria is declared in the "head" tag

<script src="js/galleria.js"></script>
<script>Galleria.loadTheme('classic/galleria.classic.js');</script>

And code is added in the body section too

<script>$('.galleria').galleria();</script>

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

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

发布评论

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

评论(1

迟月 2024-10-20 04:38:59

我在该页面上收到两个 JS 错误。我会先尝试修复这些问题,然后看看画廊是否可以正常工作。仅供参考: $('#features').cycle() 导致第一个问题,因为您似乎没有包含必要的插件。

I'm getting two JS errors on that page. I'd try to fix those first and then see whether the gallery works. FYI: $('#features').cycle() causes the first problem, since you don't seem to include the necessary plugin.

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