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
Main question: I have a Form that is MDI container and placed a Splitter.
main.php: <SCRIPT type=text/javascript> $(#btnSubmit).click(function () { alert(What will i put here!); }); </SCRIPT> <input
Main AppDomain have some child AppDomains. In child AppDomain may be UnhandledException. How to
Main menu in WP7 and audio player have the implementation. But how can i
Main reason for this is attempt to write perfectly portable C library. After a
My main process calls an external library method. This method sometimes hangs. I can
The main page (asp.net/mvc) only seems to have a getting started guide and tutorial,
My main problem is trying to find a suitable solution to automatically turning this,

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.