jCarousel - cufon disappears after the first rotation

自作多情 提交于 2019-12-11 09:09:07

问题


I'm using cufon with jCarousel.

The carousel has four items and they rotate from left to right.

The carousel is set to 'circular' and the cufon paragraphs are disappearing after the first rotation.

What can I do to get jCarousel and cufon to work so that the headlines don't disappear?


回答1:


How about trying something like this to refresh cufon on each 'rotation' - I'm assuming that your jCarousel container has a class of jcarousel:

$('.jcarousel').bind('jcarouselanimate', function(event, carousel) {
    Cufon.refresh();
});



回答2:


I tried a lot and found that, Jcarousel does not include the jquery.jcarousel.js by default. So try adding the following line to the jcarousel.module file in modules/jcarousel.

 drupal_get_path('module', 'jcarousel') . '/js/jquery.jcarousel.js',

After that instead of this on line 287 of jquery.jcarousel.js... if (i + 1 < self.first) {

replace it to this...

if (i + 1 < self.first % this.options.size) {

All the best...

It worked for me.



来源:https://stackoverflow.com/questions/10482181/jcarousel-cufon-disappears-after-the-first-rotation

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