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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:26:36+00:00 2026-06-13T16:26:36+00:00

i have a litte problem… i created a litte script (for jQuery HoverIntent-Plugin) the

  • 0

i have a litte problem…

i created a litte script (for jQuery HoverIntent-Plugin)

the script is showing my submenu for 7 seconds

( WORKS PERFECT )

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
        $(".navi-item").hoverIntent({
            over: showSub,
            timeout: 7000,
            out: hideSub
            });
        });
    function showSub(){ $(this).find('>ul').fadeIn(100); }
    function hideSub(){ $(this).find('>ul').fadeOut(100); }
</script>

now i created another script (for jQuery HoverIntent-Plugin)

the script is adding a class for 3 seconds if a specifi class isn’t set

( WORKS ONLY WHEN I DISABLE THE CODE ABOVE )

<script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
        $(".navi-item").hoverIntent({    
                timeout: 3000,  
                over:function(){
                    if (!$(this).hasClass("active")) {
                        $(this).addClass("active2");
                    }
                },
                out: function(){
                    $(this).removeClass("active2");
                }
            });
        });
</script> 

now i tried to combine both codes

( WORKS.. but only with 1 timeout )

<script type="text/javascript" charset="utf-8">
    $(document).ready(function(){
        $(".navi-item").hoverIntent({    
                timeout: 7000,  
                over:function(){
                    if (!$(this).hasClass("active")) {
                        $(this).addClass("active2"); // ADDCLASS
                    }
                    $(this).find('>ul').fadeIn(100); // SUBMENU
                },
                out: function(){
                    $(this).removeClass("active2"); // ADDCLASS
                    $(this).find('>ul').fadeOut(100); // SUBMENU
                }
            });
        });
</script>

is there a way to keep running script 1 and 2 at the same time?

OR

is it possible to set different timeouts from hoverintent to //ADDCLASS and //SUBMENU

regards berni

  • 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-13T16:26:37+00:00Added an answer on June 13, 2026 at 4:26 pm

    EDIT: Github link to my version of the plugin, for anyone who finds this in the future. It’s not particularly well optimized, so don’t overdo it, but it works.

    Looks like a duplicate of this question. Basically, the answer is “you can’t” – hoverintent was coded in such a way that any event handler you add is going to overwrite the older one. That thread’s answerer takes a couple of stabs at patching hoverintent to add the functionality you’re looking for, but it doesn’t look like he’s managed it yet.

    I’m going to try my hand at writing a new version of the plugin; give me a few minutes, and I’ll either discover that it’s more of a pain than I thought or post a Github link.

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

Sidebar

Related Questions

I have a litte problem here. I want to join twice from the same
I have a little problem with Jquery getJSON function. my json here { entries:
i have a litte problem and i need some help :) For example i
I have a litte problem and was wondering how to solve it. I have
I have little problem with printing data like this, I have written script like
I have a little problem closing my dialog box in JavaScript/jQuery on mouse exit.
i have a litte problem! i want to fetch the last 3 rows from
I am very new to jQuery/JS and I have little problem with add or
i do have a litte problem with my actual project. My .HTML document gives
I have a litte web app which works properly when deployed to the App

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.