In the thickbox javascript file there should be some way to change the image to advance on click
I don't know javascript....
I've read in the forum to:
change line 138
this: a href='' id='TB_ImageOff'
to this: a href='' id='TB_next'
but that edit broke the actual "next" link
and someone suggested:
changing lines 138 to 158
this:
*******************
$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+img_caption+"</div><div id='TB_secondLine'>" + prev.html + "<span class='TB_bg'> | " + imageCount + "<span><span class='TB_bg'> | <a href='#' id='TB_closeWindowButton' title='return'>Return</a> | <span>" + next.html + "</div>");
$("#TB_closeWindowButton").click(TB_remove);
function buildClickHandler(image) {
return function() {
$("#TB_window").remove();
$("body").append("<div id='TB_window'></div>");
TB_show(image.caption, image.url, rel);
return false;
};
}
var goPrev = buildClickHandler(prev);
var goNext = buildClickHandler(next);
if ( prev.html ) {
$("#TB_prev").click(goPrev);
}
if ( next.html ) {
$("#TB_next").click(goNext);
}
*******************
to this:
###################
$("#TB_window").append("<a href='' id='TB_imgNext' title='Next'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+img_caption+"</div><div id='TB_secondLine'>" + prev.html + "<span class='TB_bg'> | " + imageCount + "<span><span class='TB_bg'> | <a href='#' id='TB_closeWindowButton' title='return'>Close</a> | <span>" + next.html + "</div>");
$("#TB_closeWindowButton").click(TB_remove);
function buildClickHandler(image) {
return function() {
$("#TB_window").remove();
$("body").append("");
TB_show(image.caption, image.url, rel);
return false;
};
}
var goPrev = buildClickHandler(prev);
var goNext = buildClickHandler(next);
if ( prev.html ) {
$("#TB_prev").click(goPrev);
}
if ( next.html ) {
$("#TB_next").click(goNext);
}
if ( next.html ) {
$("#TB_imgNext").click(goNext);
}
###################
that didn't work either... the image didn't show up when you clicked on the thumbnail... blank page....
does anyone see a problem with that script or know how to change it to do the image advance on click??
just using the regular standard thickbox plugin that came with indexhibit... my site is http://ashtonpeek.com/ not that it matters because everyone has this plugin... or should..