msaz87 Posted March 28, 2011 Share Posted March 28, 2011 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! Quote Link to comment https://forums.phpfreaks.com/topic/231915-greybox-on-wordpress-javascript-commands-not-working/ Share on other sites More sharing options...
msaz87 Posted March 28, 2011 Author Share Posted March 28, 2011 Nevermind... found a workaround Quote Link to comment https://forums.phpfreaks.com/topic/231915-greybox-on-wordpress-javascript-commands-not-working/#findComment-1193145 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.