Firstly, your function name is incorrect, btw - it's GB_showCenter,
not GB_Center.
Second, you linked to the very info you're asking about:
-------------
Signature:
GB_showCenter(caption, url, /*optional*/ height, width, callback_fn)
Signature:
GB_showFullScreen(caption, url, callback_fn)
-------------
So your example should be
onclick="top.GB_showCenter('Workshop tour', this.href, 300, 500);
return false;"
and fullscreen should be
onclick="top.GB_showFullScreen('Workshop tour', this.href); return
false;"
I prefer top to parent (less chance of ambiguity as their is only one
possible top), and I prefer to explicitly return false to the anchor
to ensure that nothing goes blooey.
Tyler
On Aug 21, 12:24 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm a newbie to this and wondered if someone could point me in the
> right direction?
>
> I've checked the thread
> athttp://groups.google.com/group/greybox/browse_thread/thread/a8aae6249...
> and I can't get it to work, so I'm obviously doing something daft,
> sorry.
>
> I'm using an iframe which is embedded in the main page which holds the
> grey box scripts etc in the header. The iframe has the code for the
> greybox window;
>
> <a href="test5.html" onclick="return parent.GB_Center('Workshop tour',
> this.href)"><img src="camera-icon.gif" border="0"></a> <a
> href="test5.html" onclick="return parent.GB_Center('Workshop tour',
> this.href)"><span>See pictures</span></a>
>
> Could someone tell me what I need to add in to be able to specify the
> height and width of the window like you can in the example
> athttp://orangoo.com/labs/greybox/advance_usage.html- GB_showCenter
> ( please?
>
> Or to tell me how to do the full screen thing (which seems to break
> the parent thing).
>
> Would really really appreciate it someone could take time out to have
> a little look. :o)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---