问题
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