Slider navigation and conflicting ul>li>a
<p>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.</p>

<p>Can anyone find a quick solution? Code below:</p>

<p><a href="http://jsfiddle.net/jtCSA/2/" rel="nofollow">http://jsfiddle.net/jtCSA/2/</a></p>

<p>Fun Stuff:
    </p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"&gt;

&lt;head&gt;

&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;

&lt;style type="text/css"&gt;
.slider {
    height: 320px;
    position: relative;  
}

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

&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(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);
});
&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;ul&gt;
    &lt;li&gt;&lt;a href="#"&gt;Conflicting List Item&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Conflicting List Item&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Conflicting List Item&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Conflicting List Item&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="slider"&gt;
    &lt;div class="slide"&gt;1&lt;/div&gt;
    &lt;div class="slide"&gt;2&lt;/div&gt;
    &lt;div class="slide"&gt;3&lt;/div&gt;
    &lt;div class="slide"&gt;4&lt;/div&gt;
&lt;/div&gt;

&lt;ul class="slider-nav"&gt;
    &lt;li&gt;&lt;a href="#"&gt;Nav Slide 1&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Nav Slide 2&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Nav Slide 3&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Nav Slide 4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p><strong>Edit: Now with code!</strong></p>
