Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6054955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:12:38+00:00 2026-05-23T08:12:38+00:00

Sorry for the bad title, not easy to explain in such a short area.

  • 0

Sorry for the bad title, not easy to explain in such a short area.

What I’m trying to accomplish:
I’ve got a little notifications bar that slides down from the top of my site when you go to a link when you’re not signed in. It just says ‘you can’t go here’ in a clever way. Once you click it, it slides down, then using .delay(), it waits 2500ms and then slides back up. I’d like it so if you click a new one, it will cancel the delay and immediately slide up the old one and bring down a new one.

The problem is:
If you click the button to bring down the notification over and over, it will wait for the .delay to finish before going to the next one, thus creating and endless stream of notifications that you’d have to wait through. I’d like it so when you click a new tab, it stops the .delay and immediately goes there, so you don’t have the delay if you’re compulsive or accidentally click.

My website: http://thenozzle.net/

The notification comes down when you click the ‘games’, ‘projects’, ‘contests’ or ‘forums’ links in the menubar.

Javascript:

function notifyevent(){
    $('#subscribercontent').slideUp('fast');
    $('#subscribercontent').slideDown('fast').delay(2500).slideUp('fast')
}

Make sense? I see this problem all over the place, where if you click multiple times, it must wait for the delay to finish. But I don’t want to get rid of the slide up and slide back down, because I want that action-reaction fell of the notification, so you can associate the notification bar being down with your clicking.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:12:38+00:00Added an answer on May 23, 2026 at 8:12 am

    I solved it, actually thanks to a combination of answers.

    function notifyevent(){
        $('#searchoverflow').slideUp('fast');
        $('#subscribercontent').slideUp('fast');
        $('#subscribercontent').slideDown('fast');
        setTimeout("$('#subscribercontent').stop(true,true).slideUp('fast');", 3000)
    }
    

    I use the setTimeout instead of delay, then I use .stop() not to stop a delay, but to stop the animation before the timeout. If anyone knows of a better way, that’d be great, with way kinda destroys the timer if you clickspam, and people will do that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry for the bad heading but I couldnt explain it better. im trying to
Sorry for the bad title but it's a little complicated to get across in
Sorry if the title is bad. But I do not know how to address
hi sorry for the bad title but I'm not 100% sure what I need
Sorry for bad title. I could not come up with anything better. Every example
Sorry for bad english and bad title! I have the table post id title
sorry for the bad title, I don't know how to describe my problem. I
Sorry for the bad title, I wasn't sure what else to call this question.
Sorry for the bad title (couldn't think of a better way to describe it)
At first sorry for my really bad title! If you have a better title

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.