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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:31:01+00:00 2026-05-24T11:31:01+00:00

I have a simple HTML list: <ul> <li> <div class=slideshow1> <img class=bradius5 slide1 src=<?php

  • 0

I have a simple HTML list:

<ul>
    <li>
        <div class="slideshow1">
            <img class="bradius5 slide1" src="<?php base_url();?> img/ristorante1.jpg" height="150" width="170"/>
            <img class="bradius5 slide1" src="<?php base_url();?> img/ristorante1.jpg" height="150" width="170"/>
            <img class="bradius5 slide1" src="<?php base_url();?> img/ristorante1.jpg" height="150" width="170"/>
            <img class="bradius5 slide1" src="<?php base_url();?> img/ristorante1.jpg" height="150" width="170"/>
        </div>
    </li>

    <li>
        <div class="slideshow2">
            <img class="bradius5 slide2" src="<?php base_url();?> img/ristorante1.jpg" height="150" width="170"/>
            <img class="bradius5 slide2" src="<?php base_url();?> img/ristorante1.jpg" height="150" width="170"/>
            <img class="bradius5 slide2" src="<?php base_url();?> img/ristorante1.jpg" height="150" width="170"/>
            <img class="bradius5 slide2" src="<?php base_url();?> img/ristorante1.jpg" height="150" width="170"/>
        </div>
    </li>
</ul>

I tried to cycle through the images by doing this:

$('.slide1,.slide2').hide();

$.each($('.slide1'), function() {
    $(this).fadeIn().delay(1900).fadeOut();
});

$.each($('.slide2'),function() {
    $(this).fadeIn().delay(1900).fadeOut();
});

However, it doesn’t cycle image by image; it cycles multiple images at a time.

I want to cycle through all the images in the first li, then cycle through the images in the second li.

  • 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-24T11:31:02+00:00Added an answer on May 24, 2026 at 11:31 am

    its because youre delaying all of them at once. The first parameter in the each is the current index.

    Try something like this:

    $.each($('.slide1'),function(i){
         $(this).fadeIn().delay(i*200).fadeOut();
    });

    this will delay each one 200ms from the last

    Update

    You should really use a plugin like @ShankarSangoli has suggested and just get it to work with the layout but something like this should work for you as well. (this hasn’t been tested but just to get you started)

    var _slide1 = $('.slide1');
    var _slide2 = $('.slide2');
    var_count1 = 0;
    var _count2 = 0;
    
    setInterval(function(){
        _slide1[_count1].fadeOut(300);
        _slide2[_count2].fadeOut(300);
    
        _count1 = _count1 >= _slide1.length ? 0 : _count1+=1;
        _count2 = _count2 >= _slide2.length ? 0 : _count2+=1;
    
        _slide1[_count1].fadeIn(300);
        _slide2[_count2].fadeIn(300);
    }, 2000);
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple html form. On php page. A simple list is placed
I have written very simple image rotaror with jquery: HTML: <div class=left id=main> <ul
I have the following html for a simple navigation: <header> <div class=login> <ul> <li><a
I have a simple html page with a div. I am using jQuery to
I have a vertical menu (html list) with an arrow image (as a div).
i have simple side menu with this html code : <div id=menu> <div> Menu
I have a template like this: <script id=notesTemplate type=text/html> <li class=Note> <div class=NoteDate data-bind=style:
I have a simple HTML/CSS list that is displayed inline. I am using a
I have simple HTML code with some JavaScript. It looks like: <html> <head> <script
I have a simple HTML. I am using the JQuery for AJAX purpose. Now,

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.