jQuery/script Question
- Started
- Last post
- 4 Responses
- noRBG
I'm using the following in a page I'm working on. It works perfectly for what I need, except that I need to remove the function where it lists the image numbers, "1," "2," etc.
I have tried just about everything I am capable of, and have been able to remove it a couple of times, but it always breaks the script.
Any thoughts?
jQuery(function(){
jQuery("div.svw").prepend("<img src='images/loading.gif' class='ldrgif' alt='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").rem... // removes the preloader gif
container.removeClass("svw").add...
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("<div class='stripTransmitter' id='stripTransmitter" + (j) + "'><ul><\/ul><\/div>");
jQuery(this).find("li").each(fun... {
jQuery("div#stripTransmitter" + j + " ul").append("<li><a title='" + jQuery(this).find("img").attr("alt") + "' href='#'>"+(n+1)+"<\/a><\/li>");
});
jQuery("div#stripTransmitter" + j + " a").each(function(z) {
jQuery(this).bind("click", function(){jQuery(this).addClass("current... // wow!
var cnt = -(pictWidth*z);
container.find("ul").animate({ left: cnt}, settings.easeTime, settings.easeFunc);
return false;
});
});// next image via image click 14/01/2009
jQuery("div#stripTransmitter" + j + " a").parent().parent().parent().p... {
jQuery(this).bind("click", function(){
var ui = jQuery(this).parent().parent().p...
if(z+1 < pictEls){
ui.eq(z+1).trigger("click");
}
else ui.eq(0).trigger("click");
});
});jQuery("div#stripTransmitter" + j).css("width" , pictWidth);
jQuery("div#stripTransmitter" + j + " a:first").addClass("current");
if(settings.toolTip){
container.next(".stripTransmitte... ul").find("a").Tooltip({
track: true,
delay: 0,
showURL: false,
showBody: false
});
}
});
j++;
});
};
- acescence0
it would also help to see all of the code, some of it is getting stripped out here...
- noRBG0
No Naim, you're right actually. Lol.
I spent a couple attempts modifying that to void, or dividing by zero, but fuck me if I didn't think to just remove that completely.
Thank you Naim, continue on in your awesomeness.
- noRBG0
lawl, my bad. all this time ive been reading it at NAIM