thanks for responding, fanctbox is a lightbox plugin if you have not already notice, when clicking on a image it loads an ajax requested file it works find the code below will hide all classes with the name target.
i need a callback function to hide the item that is clicked i imagine the click handler is handled in the facnybox plugin but that is where my knowledge ends maybe if I set a click handler in call back it will work? you can see what is happening at http://www.macpeeps.com/codabooks Thanks again for any help you guys can offer On Jun 2, 11:58 am, Michael Lawson <mjlaw...@us.ibm.com> wrote: > Hmm, i'm not familiar with fancy box, but I don't see an onclick event > being bound to any objects. What should your code do, and what is it doing > instead? > > cheers > > Michael Lawson > Development Lead, Global Solutions, ibm.com > Phone: 1-276-206-8393 > E-mail: mjlaw...@us.ibm.com > > 'Examine my teachings critically, as a gold assayer would test gold. If you > find they make sense, conform to your experience, and don't harm yourself > or others, only then should you accept them.' > > From: alienfactory <alienfacto...@gmail.com> > > > To: "jQuery (English)" <jquery-en@googlegroups.com> > > > Date: 06/02/2009 02:51 PM > > > Subject: [jQuery] jquery help > > > can anyone in the jquery community help me with an issue. the group > for fancybox is not very active > > my problem is the following > i am trying to use a callback in the fancybox plugin > 'callbackOnStart':function(){ $(".target").css({'visibility': > 'hidden'}); this example hides all the classes marked target > but i need to only target the actual item being clicked. > > i tried to use callbackOnStart':function(){ $(this).css > ({'visibility': > 'hidden'}); > but does not seem to work > can anyone help me out with this i know this is not a fancybox group > so thanks in advance for any suggestion or help > Thanks > Terry > $(".target").fancybox( { > 'zoomSpeedIn': 500, > 'zoomSpeedOut': 300, > 'easingIn' : 'easeOutCubic', > 'easingOut' : 'easeInBack', > 'overlayOpacity': 0.5, > 'frameHeight': 499, > 'frameWidth': 345, > 'imageScale': true, > 'overlayShow': true, > 'callbackOnStart':function(){ $(".target").css > ({'visibility': > 'hidden'}); > }, > 'callbackOnClose':function(){ $(".target").css > ({'visibility': 'visible'}); > } > }); > > graycol.gif > < 1KViewDownload > > ecblank.gif > < 1KViewDownload