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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:07:22+00:00 2026-06-05T17:07:22+00:00

Having issue with slider navigation. Works perfectly fine when there are no other unordered

  • 0

Having issue with slider navigation. Works perfectly fine when there are no other unordered lists of links on the page; unfortunately, if any other unordered lists of links appear on the page, the slider functions properly until the slider navigation buttons are used, in which case, the slide disappears and fails to load the next slide.

Can anyone find a quick solution? Code below:

http://jsfiddle.net/jtCSA/2/

Fun Stuff:

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<style type="text/css">
.slider {
    height: 320px;
    position: relative;  
}

.slider .slide {
    display: none;
    background: red;
    position: absolute;
    height: 320px;
    width: 100%;
    text-align: center;
}
</style>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
$(window).load(function(){
$('.slider .slide:first').addClass('active').fadeIn(200);

function rotate(index) {
    $('.slider .slide.active').removeClass('active').fadeOut(200, function() { 
    $('.slider .slide:eq(' + index + ')').addClass('active').fadeIn(200);
    });   
}

$('.slider-nav li a').click(function() {    
    var index = $(this).parent().index('li');
    rotate(index);
    return false;
});

setInterval(function() {
var $next = $('.slider .slide.active').next();

if ($next.length == 0)
    $next = $('.slider .slide:first');

    rotate($next.index());
}, 2000);
});
</script>

</head>

<body>

<ul>
    <li><a href="#">Conflicting List Item</a></li>
    <li><a href="#">Conflicting List Item</a></li>
    <li><a href="#">Conflicting List Item</a></li>
    <li><a href="#">Conflicting List Item</a></li>
</ul>

<div class="slider">
    <div class="slide">1</div>
    <div class="slide">2</div>
    <div class="slide">3</div>
    <div class="slide">4</div>
</div>

<ul class="slider-nav">
    <li><a href="#">Nav Slide 1</a></li>
    <li><a href="#">Nav Slide 2</a></li>
    <li><a href="#">Nav Slide 3</a></li>
    <li><a href="#">Nav Slide 4</a></li>
</ul>

</body>

</html>

Edit: Now with code!

  • 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-05T17:07:24+00:00Added an answer on June 5, 2026 at 5:07 pm

    Simple as that: change var index = $(this).parent().index('li'); to var index = $(this).parent().index();

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

Sidebar

Related Questions

I am having a issue in a Content Slider that when I scroll (by
The Issue I am having is that I have a JS Slider in the
I have custom slider sitting at the top of my page but I'm having
I'm integrating a content slider into magento theme, but having some issue with the
I am having a slider in my webpage and it displays perfectly in chrome
Im using a jquery slider and having an issue with what direction it scrolls
has anyone ever used nivo slider for images? I'm having an issue with showing
I having issue that content assistant / intellisense is working in methods such as
i am having issue with loading my selector via a jquery ajax load call
Having an issue with random individuals trying to access an intranet site with a

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.