I just did the following and it is working: if (!(TB_PrevHTML === "")) { function goPrev(){
if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);} $("#TB_window").fadeOut("slow", function(){ $(this).remove(); $("body").append("<div id='TB_window'></div>"); tb_show(TB_PrevCaption, TB_PrevURL, imageGroup); }); return false; } $("#TB_prev").click(goPrev); } if (!(TB_NextHTML === "")) { function goNext(){ $("#TB_window").fadeOut("slow", function(){ $("body").append("<div id='TB_window'></div>"); tb_show(TB_NextCaption, TB_NextURL, imageGroup); $(this).remove(); }); return false; } $("#TB_next").click(goNext); } http://neurosesgalore.com/2007/05/21/tumor-free-in-0-dang/ On 5/24/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
I would think something like $("#TB_window").fadeOut("slow").remove(); would work. Let me try it on an installation I have and will get back to a little later. On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I'm a js logic clutz, I tried adding. > .fadeOut("slow"); > > to the place in the function where it called remove, that didn't work. > IT broke the TB trying that. > Here's the goNext function just if somebody can give me a quick code > sample: > --------------------- > if (!(TB_NextHTML === "")) { > function goNext(){ > $("#TB_window").remove(); > $("body").append("<div > id='TB_window'></div>"); > tb_show(TB_NextCaption, > TB_NextURL, imageGroup); > return false; > } > $("#TB_next").click(goNext); > > } > -------------------- > > > On May 24, 9:49 am, "Benjamin Sterling" > <[EMAIL PROTECTED]> wrote: > > Take a look at his goNext and goPrev functions, that is where, I > assume, you > > can put in the transition affects. > > > > -- > > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com > > -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
-- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com