I am struggling with linking individual images in a JavaScript slider for a client's website. The slider is fully functional and works well, but I can't seem to figure out how to link the images properly.
When I remove items from <--ul class="items"-->(below), I am able to add links to the <--li--> images and have them behave as normal links. However, this causes the JavaScript slider function to stop working. I have tried everything I could think of.
My objective is to link each image to its corresponding page on the site. There are a total of 4 images. I am relatively new to this kind of coding, so any assistance would be greatly appreciated.
<script>
$(document).ready(function(){
$('.gallery')._TMS({
show:0,
pauseOnHover:true,
prevBu:'.prev',
nextBu:'.next',
playBu:'.play',
duration:700,
preset:'fade',
pagination:$('.img-pags').uCarousel({show:4,shift:0}),
pagNums:false,
slideshow:7000,
numStatus:true,
banners:false,
waitBannerAnimation:false,
progressBar:false
})
})
Website
<div class="container_12">
<div class="grid_12">
<div id="slide">
<div class="gallery">
<ul class="items">
<li><a href="about.html"><img src="images/gallery-big-1.jpg" alt=""> </a></li>
<li><img src="images/gallery-big-5.jpg" alt=""></li>
<li><img src="images/gallery-big-2.jpg" alt=""></li>
<li><img src="images/gallery-big-6.jpg" alt=""></li>
</ul>
</div>
<a href="#" class="prev"></a><a href="#" class="next"></a>
</div>
</div>
#slide { width:940px; height:415px; position:relative; overflow:hidden; z-index:2; }
.gallery {
width:940px;
position:relative;
z-index:2
}
.items {display:none;}
.pag { position:relative;}
.img-pags {position:static; left:0px; z-index:1; display:block;}
.img-pags ul {margin:0}
.img-pags li { width:200px; height:170px; margin-right:20px; display:block; overflow:hidden; }
.img-pags li a {position:relative;display:block;border:#f4f4f4 5px solid; }
.img-pags li a img {}
.img-pags li a span{ display:block; background:#fff;}
.img-pags li.active a,.img-pags li a:hover{border:#CCC 5px solid;}
.img-pags li.active a img,.img-pags li a:hover img{}
.prev {background:url(../images/prev-1.gif) 0 0 no-repeat; bottom:1px; left:1px; display:block; position:absolute; width:44px;height:44px; z-index:9999;}
.next{background:url(../images/next-1.gif) 0 0 no-repeat; bottom:1px; right:1px; display:block; position:absolute; width:44px;height:44px; z-index:9999;}
.prev:hover, .next:hover {background-position: 0 bottom;}