nivo 滑块 - 不断加载 gif [英] nivo slider - loading gif keeps on and on and on

查看:17
本文介绍了nivo 滑块 - 不断加载 gif的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了手册所说的一切".包括所有文件,将其正确添加到 html 结构,加载图像,..

i have done 'everything' that manual says. included all files, adding it properly to html structure, loaded images,..

请您查看实时问题这里

推荐答案

你正在使用 ajaxpage 来加载 div with id=slider对于 page.php 的某些类别.但是,Nivo 滑块会在主页面加载后寻找 div($(window).load 函数).

You are using ajaxpage to load the div with id=slider for certain categories for page.php. However, Nivo slider is looking for a div after the primary page has loaded (the $(window).load function).

不知何故,您需要将 .load 函数调用附加到 ajaxpage 正在加载的页面.

Somehow, you need to attach the .load function call to the page being loaded by ajaxpage.

您可以尝试在设置 Nivo 幻灯片时将 $(window).load 调用添加到每个页面的底部.

You might try adding the $(window).load call to the bottom of each page whenever you are setting up a Nivo slideshow.

如果您使用的是 jQuery 的 ajax 库/模块调用,则可以附加 load 操作以在 ajax 加载时触发.

If you were using jQuery's ajax library/module calls, you might be able to attach the load action to fire when the ajax has loaded.

我使用 Nivo 查看了您的 page.php 页面之一的源代码,我认为您正确设置了 HTML,但 Nivo 模块尚未启动,部分原因是页面使用 ajax 拉入内容的方式.

I looked at the source of one of your page.php pages with Nivo and I think that you set up the HTML correctly, but the Nivo module just has not been started, partly because of the way the page is pulling in the content using ajax.

这是一种聪明的做事方式,但只是需要一个不同的技巧来启动 Nivo.

This is a clever way of doing things, but just needs a different trick to starting Nivo.

这篇关于nivo 滑块 - 不断加载 gif的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆