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 8739263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:53:59+00:00 2026-06-13T10:53:59+00:00

i have some syntax problem… This is my little script: $(‘.basket_details, .advanced_search_panel, .producers_major_panel’).hover(function ()

  • 0

i have some syntax problem… This is my little script:

$('.basket_details, .advanced_search_panel, .producers_major_panel').hover(function () {
    mouse_is_inside = true;
}, function () {
    mouse_is_inside = false;
});
$("body").mouseup(function () {
    if (mouse_is_inside) {
        $('.advanced_search_panel, .producers_major_panel').fadeOut('slow');
        $('.basket_details').slideUp('slow');
    }
});

everything’s fine but my chrome console screaming that i have syntax errors, and mouse_is_inside is not define, how to correct this mistake?

  • 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-13T10:54:01+00:00Added an answer on June 13, 2026 at 10:54 am

    Try a closure:

    (function() {
    
      var mouse_is_inside = false;
    
    $('.basket_details, .advanced_search_panel, .producers_major_panel').hover(function () {
        mouse_is_inside = true;
    }, function () {
        mouse_is_inside = false;
    });
    $("body").mouseup(function () {
        if (mouse_is_inside) {
            $('.advanced_search_panel, .producers_major_panel').fadeOut('slow');
            $('.basket_details').slideUp('slow');
        }
    });
    
    })();
    

    This will allow you use of ‘mouse_is_inside’ within the scope of the functions. It also stops you from needing to use a global.

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

Sidebar

Related Questions

I have some problem converting a MYSQL query to CI syntax. This my MySQL
I have some problem with replace command. Input file i have this {a[$1]=a[$1]FS$2}END{for(i in
i have some problem with a razor syntax. I would like to know how
I have some .c files that don't automatically highlight in vim. This problem only
I have some code with the a structure similar to this function bbcode($Text) {
I have a syntax problem with some code and I keep changing the syntax
I have some MP3 files that are named with a particular syntax, for example:
Im having some trouble getting the syntax right. I have a movie clip that
I am needing some help with SQL syntax. Say I have a members table,
I have the following syntax problem. I have a jar file that is created

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.