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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:23:25+00:00 2026-05-18T04:23:25+00:00

$(#main .landkaart ul li > ul).hide(); $(.landkaart ul li).hover(function() { if($(ul,this).hasClass(open) ) { $(ul,

  • 0
$("#main .landkaart ul li > ul").hide();

$(".landkaart ul li").hover(function()
{
    if($("ul",this).hasClass("open") )
    {
        $("ul", this).fadeOut().removeClass('open');
    }
    else
    {   
        $("ul", this).fadeIn().addClass('open');
    }
});

I have this html structure:

<div class="landkaart">
    <ul>
        <li><a class="doetinchem" title="Vestiging Doetinchem" href="vestiging.html">Doetinchem</a>
            <ul class="doetinchem">
                <li><h2>Doetinchem</h2></li>
                <li>Gildenbroederslaan 4</li>
                <li>Postbus 196</li>
                <li>7000 AD Doetinchem</li>
                <li>Telefoon (0314) 37 70 00</li>
                <li>Telefax (0314) 37 70 05</li>
                <li>doetinchem@kabaccountants</li>
            </ul>
        </li>
        <li><a class="didam" title="Vestiging Didam" href="vestiging.html">Didam</a>
            <ul class="didam">
                <li><h2>Didam</h2></li>
                <li>Parallelweg 29</li>
                <li>Postbus 50</li>
                <li>6940 BB Didam</li>
                <li>Telefoon (0316) 22 15 08</li>
                <li>Telefax (0316) 22 78 30</li>
                <li>didam@kabaccountants</li>
            </ul>
        </li>
    </ul>
</div>

When i hover over a li item. The ul item show now. But now. I would make that this go automatically. How can i make an timer on this function? That every 5 sec come an other (“ul”,this) item

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-18T04:23:25+00:00Added an answer on May 18, 2026 at 4:23 am

    Like this:

    Example: http://jsfiddle.net/eSk3X/1/

    var $subUl = $(".landkaart ul li > ul").hide();
    $subUl.eq(0).show();
    
    var len = $subUl.length;
    
    var index = 0;
    
    setInterval(function() {
        $subUl.eq( index ).removeClass('open').fadeOut(function() {
                index = (++index % len);
                $subUl.eq( index ).addClass('open').fadeIn();
            }
        );
    }, 5000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

main() calls Call_By_Test() function with argument parameter First Node. I have freed the First
function main() { Hello(); } function Hello() { // How do you find out
The main web application of my company is crying out for a nifty set
My main JavaScript framework is jQuery , so I would like my unit test
The main user-case is: Create the 2D floor plan See the 3D view of
Why main must be declared as if it has external linkage? Why it should
My main browsers (FF and Chrome) are both configured for a 12 pixel font.
The main jQuery method takes a second optional argument to provide context for the
My main experience is with C && C++, so I'd prefer to remain with
My main window has spawned a child window that's positioned on top to look

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.