Im using Hybris Spring MVC platform which uses jcarousel functionality out of the box. However, I need to put mulitple sliders on a page and this does not currently seem possible.
The First slider renders fine. However all the others are showing the loading icon and the sliders are not being rendered on the page. These other sliders need to also fade instead of rotate like the first one.
Im using Hybris Spring MVC platform which uses jcarousel functionality out of the box. However, I need to put mulitple sliders on a page and this does not currently seem possible.
The First slider renders fine. However all the others are showing the loading icon and the sliders are not being rendered on the page. These other sliders need to also fade instead of rotate like the first one.
The html is as follows:
And the js file is sliderviewer 1.2 as below:
/*!
*
*/
jQuery(function(){ jQuery("div.svw").prepend("<img src='" + ACC.config.commonResourcePath + "/images/spinner.gif' class='ldrgif' alt='loading...'/ >"); }); var j = 0; var quantofamo = 0; var currentActive = 0; var total = 0; var listelements = [];
jQuery.fn.slideView = function(settings) { settings = jQuery.extend({ easeFunc: "easeInOutExpo", easeTime: 750, uiBefore: false, toolTip: false, ttOpacity: 0.9, autoPlay: false, autoPlayTime: '8000' }, settings); return this.each(function(){ var container = jQuery(this); container.find("img.ldrgif").remove(); container.removeClass("svw").addClass("stripViewer");
var pictWidth = container.find("img").width(); var pictHeight = container.find("img").height(); var pictEls = container.find("li").size(); var stripViewerWidth = pictWidth*pictEls; container.find("ul").css("width" , stripViewerWidth); container.css("width" , pictWidth); container.css("height" , pictHeight); container.each(function(i) { (!settings.uiBefore) ? jQuery(this).after("
<\/ul><\/div>") : jQuery(this).before("
<\/ul><\/div>");- "+(n+1)+"<\/a><\/li>");
});
jQuery("div#stripTransmitter" + j + " a").each(function(z) {
jQuery(this).find("li").each(function(n) { jQuery("div#stripTransmitter" + j + " ul").append("
};
Any help is much appreciated. I have have the id's of the other ul lists for the sliders but as you can see they all share the same div id "homepage_slider2". I can add dynamic classes to this div not another id.
You're not using jCarousel here but another jQuery plugin called
slideViewer
. Please report any problem to the issue tracker of this project.