nivo slider - loading gif keeps on and on and on

一世执手 提交于 2019-12-13 00:09:21

问题


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

please, you can view live problem here


回答1:


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).

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

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

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.

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.

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



来源:https://stackoverflow.com/questions/5370247/nivo-slider-loading-gif-keeps-on-and-on-and-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!