Jump to content

Greybox on Wordpress javascript commands not working


msaz87

Recommended Posts

Hey all,

 

I'm using Greybox on a Wordpress site and while the box function works and the built-in close button works, I can't use any javascript functions for it within the frame. For example, according to Greybox documentation you can use the following to create a close button within the frame:

 

<a href="#" onclick="parent.parent.GB_hide();">My Close Button</a>

 

This code works in a Greybox setup I have on a non-Wordpress site, but not on this one. And as far as I can tell, there's no difference in the setups.

 

If you're familiar with Greybox.. or just a javascript wiz, I'd really appreciate the help.

 

The site in question is located here -- you can activate the Greybox frame by clicking on the image that says "REGISTER TODAY" -- I have the "My Close Button" sitting at the very top of the frame... you can try it and see if doesn't work and try the right-hand corner close button that was built-in and see that it does.

 

Any advice is greatly appreciated -- thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.