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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:04:28+00:00 2026-05-26T16:04:28+00:00

Supposed the html code is: <div class=scroller> <ul class=header-contact> <li id=header-section1 class=sectionslide><p>We offer FREE

  • 0

Supposed the html code is:

<div class="scroller">
          <ul class="header-contact">
            <li id="header-section1" class="sectionslide"><p>We offer FREE shipping</p><p>on orders of $50 or more!</p></li>
            <li id="header-section2" class="sectionslide"><p>We ship your orders same day</p><p>&nbsp;&nbsp;&nbsp;if ordered before 2pm PST.</p></li>
            <li id="header-section3" class="sectionslide"><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call Us: 1234</p><p>Our hours: Mon - Fri 10am-5pm</p></li>
          </ul>
          </div>

i want to make the li content auto show and hide one by one. i am sorry. i don’t know how to set the time duration to make the li content show and hide. which event i should do?

  • 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-26T16:04:28+00:00Added an answer on May 26, 2026 at 4:04 pm

    Try something like this (Demo):

    // starting a named function expression
    // the function name is only usable inside the function scope
    (function slide(wrapper, slides, idx, delay, duration) {
    
      // delay an animation on the wrapper element
      $(wrapper).delay(delay || 1000).animate({
    
        // moving the wrapper element upwards by the slide element top position
        top: -$(slides).eq(idx || 0).position().top
    
      // setting animation duration and anonymous callback function
      }, duration || 1000, function () {
    
        // calling slide recursively, but incrementing or resetting the
        // passed slide element index
        slide(wrapper, slides, idx < slides.length - 1 ? idx + 1 : 0, delay, duration);
      });
    
    // closing the function body and immediately call it, with parameters for
    // the wrapper element,
    // the slide elements,
    // the index to start with,
    // the animation delay and
    // the animation duration
    }($('.scroller > ul'), $('.scroller > ul > li'), 0, 1500, 500));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have this HTML code: <div class=person> Mike Mulky </div> <div class=person> Jenny
Suppose I have this html markup: <div id=wrapper> <pre class=highlight> $(function(){ // hide all
HTML: <div id=media-photo> <img src=/uploads/photos/16.jpg alt= /> </div> <a href=/uploads/photos/5.jpg class=img> <img src=/uploads/photos-thumbs/5.jpg alt=
My original HTML is: <div class=add-inv-button>Add to Your Game Plan </div> I have the
This is my php code: echo '<div class=code rel=$url>$title</div> <div class=tip>Copy and open site</div>';
here is the html code that is giving me problem in IE7 <div style=position:absolute;top:276px;left:194px;
Suppose I have the following HTML: <div id=test> <span style=display:inline;>foo</span> <span style=display:none;>bar</span> <span style=display:inline;>baz</span>
Suppose you're building an HTML form and you want to have 2 or more
I have this code: $reader = new DOMDocument(); $reader->loadHTML($shell); $xpath = new DomXPath($reader); $xpath->registerNamespace('html','http://www.w3.org/1999/xhtml');
so i have the two following iframe codes: <iframe title=YouTube video player class=youtube-player type=text/html

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.