Jump to content

Recommended Posts

Hi all,

 

I think this is either going to be super simple or one of those things you cannot do!

 

Basically I have this:

 

<a href="reg.php" title="Register" rel="gb_page_center[1000, 500]" ><img src="images/logo.jpg" width="200" height="200" alt="logo" /></a>

 

Which opens a link in an ajax box, however, this is launched from a slide down menu which covers the top 1/3 of the screen. What I want it to do is autoclose the slide down box.

 

This is a link on the slide down which closes it:

 

<a id="close" style="display: none;" class="close" href="#">Close Panel</a>

 

So basically I just want this to run when the user clicks the link!

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/183293-run-close-div-on-a-href-click/
Share on other sites

You could try adding the "close" class to the link that gets clicked. But that most likely wont do it.  You really need to look at the js your using find the close function and bind it to the click event of the other url as well.

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.