If the onclick moved the whole page to a blank page, then it likely isn't set up quite right. Do you know that you have to return false from onclick in order to successfully override an anchor's action?
Simple example: <a href='http://www.google.com' onclick='GB_show("Google", this.href); return false; '>test</a> I took a longer look at your code...it's weird that it does that. I don't see how your function is being triggered, or how greybox might be switching visibility of your div (I have tons of hidden divs on my pages, and GB doesn't do that to mine). I thought it might be a namespace collision of some kind, but I'm not seeing that either. Definitely a mystery there! Requires some serious debugging. I'd create a page with just the greybox link and hidden div on it, and go from there. If that page works as it should, I'd then start adding more elements from the original page until you figure out what's doing that. If it doesn't, firebug and some fiddling should show up the problem right away. Sorry I can't be of more help. Tyler On Oct 27, 6:58 pm, -C <[EMAIL PROTECTED]> wrote: > Hi Tyler, > > Thanks for the suggestion. But swapping "onclick" for the "rel" > stopped the Greybox from working and only created a regular onclick > link to a white page. > > I have a feeling there's something in the "gb_script.js" file that > could be altered to fix this. > It's almost as if the "on close" function is creating a toggle... > it'll close the the Greybox if it's opened, and at the same time will > open any DIVs that are closed in the page. > > (I'll check out the Advanced Usage area in the Greybox site as you > suggested and see if this appears there - thanks for that suggestion > too.) > > If anyone else out there in the Greybox Goup is familiar with the > "gb_scripts.js" code - please pass on any solutions you might have for > this. > > Many Thanks, > > - C > > On Oct 25, 5:03 pm, Logos <[EMAIL PROTECTED]> wrote: > > > Try using onclick="blahblahblah" instead of > > rel="gb_imageset[nice_pics]"; rel is more trouble than it's worth if > > you're using any other effect than greybox. You can find the APIs in > > the Advanced Usage (http://orangoo.com/labs/greybox/ > > advance_usage.html) > > > Tyler > > > On Oct 24, 6:55 am, -C <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > I have just started using Greybox for some of my clients - works > > > great! > > > > However, today I used it in a page that contained a hidden DIV which > > > holds a Flash product gallery.... after the Greybox is viewed, and > > > a > > > visitor hits the Greybox "close" button, it closes Greybox properly, > > > but immediately runs the hidden DIV as if the flash gallery link was > > > clicked. > > > > Is there something in the "gb_scripts.js" file I should alter? > > > > Here's the link to see what it's > > > doing:http://www.sparkfires.com/products/fire_ribbon_VF.htm > > > > Many thanks > > > - C- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GreyBox" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/greybox?hl=en -~----------~----~----~----~------~----~------~--~---

