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

  • Home
  • SEARCH
  • 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 8584895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:52:50+00:00 2026-06-11T21:52:50+00:00

I am currently learning MVC3 and have been adding several jQuery scripts to my

  • 0

I am currently learning MVC3 and have been adding several jQuery scripts to my projects during my learning process, trying to learn that at the same time. Things have been going well, but in this case I can’t seem to figure out exactly what I have to do to achieve the functionality I want.

I have created a sample of the relevant code in this Fiddle, rather than write the code out here in several code blocks.

What happens in my code is that when the button is pressed, the message div is slide out from the left, after 3 seconds it will slide away again. If the user puts their mouse over the message div while it is slid out, a message will be added.

This is pretty much what I want apart from one small addition; when the user puts their mouse over the message div, I want it to stay open until they move the mouse away, then it will slide back, currently it will still slide away after the 3 seconds have been elapsed.

I have tried moving .delay, adding code into the mouseout() event, but my lack of knowledge in jQuery has pretty much stopped my progression here.

Could anyone explain how to do this and/or point me to some examples.

Thanks very much.

  • 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-06-11T21:52:51+00:00Added an answer on June 11, 2026 at 9:52 pm

    Since you call the clear (and thus 3 sec delay) in display function, then I suggest the following mouseover/mouseout handlers:

    $("#messageWrapper").mouseover(function() {
        $("#testlabel").text("mouseover");
        $("#messageWrapper").css('width', 'auto');
        $("#messageWrapper .messageBox").text(something);
        $(this).clearQueue();
    }).mouseout(function() {
        $("#testlabel").text("mouseout");
        clearMessages();
    });
    

    Edited Fiddle: http://jsfiddle.net/vypTA/7/ – guess you could tweak the clear delay (pass it as arg or something)

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

Sidebar

Related Questions

im currently learning jQuery and have ran into a problem. I am trying to
I am in the process of learning MVC3 and I have the following @Ajax.Actionlink
I am in the process of learning MVC3 and have implemented my own MembershipProvider
I am currently learning jsp/servlet, and trying to make an online bookstore. Using jquery,
I've been learning MVC3 in the last few weeks and I'm trying to write
im currently learning python (in the very begining), so I still have some doubts
im currently learning stacks in java and have a quick question. what will the
I am currently learning C, and am having some issues with trying to make
Hi I'm currently learning Ruby On Rails and I have a little mistake. I
I am currently learning Haskell. I am trying to write a function which given

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.