jQuery(function(){ jQuery("div.svw").prepend("loading..."); }); var j = 0; var quantofamo = 0; jQuery.fn.slideView = function(settings) { settings = jQuery.extend({ easeFunc: "easeInOutExpo", easeTime: 750, toolTip: false }, settings); return this.each(function(){ var container = jQuery(this); container.find("img.ldrgif").remove(); // removes the preloader gif 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); //assegnamo la larghezza alla lista UL container.css("width" , pictWidth); container.css("height" , pictHeight); container.each(function(i) { jQuery(this).after("