I have decided to find a better tutorial, than the website where I originally found the idea. Anyway I have changed the way it functions. The actual image cycle works, now I can't get the navigation to display and work. The website where I found the tutorial is here: http://www.codingcereal.com/2011/03/...-jquery-cycle/. I am needing a solution to this problem soon please, so can someone please have a look at my new image cycle and tell me how I can solve it?
Here is my new jquery code:
Code:
<script src="js/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="js/jquery.cycle.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
if (jQuery('#cycleimages').length > 0) {
jQuery('#cycleimages').cycle({
fx: 'scrollHorz',
speed: 750,
timeout: 4000,
randomizeEffects: false,
easing: 'easeOutCubic',
next: '.cyclenext',
prev: '.cycleprev',
pager: '#cyclewrapnav',
cleartypeNoBg: true
});
}
});
</script>
Here is my css:
HTML Code:
#cyclewrap {
overflow: hidden;
width:900px;
position:relative;
}
#cycleimages {
overflow: hidden;
position: relative;
}
#cycleimages img {
display: none;
}
#cycleimages img.first {
display: block;
}
#cyclewrap .cycleprev, #cyclewrap .cyclenext {
display:block;
width:32px;
height:32px;
top:150px;
z-index:9999;
text-decoration:none;
position:absolute;
}
#cyclewrap .cycleprev {
left:0;
background:url('images/img-prev.png') no-repeat top left;
}
#cyclewrap .cyclenext {
right:0;
background:url('images/img-next.png') no-repeat top left;
}
#cyclewrapnav {
position:absolute;
bottom:0;
z-index:9999;
}
#cyclewrapnav a {
background:transparent url('images/pagenav.png') no-repeat 0 0;
float:left;
height:15px;
overflow:hidden;
text-decoration:none;
text-indent:-1234px;
width:48px;
}
#cyclewrapnav a.activeSlide {
background-position:-32px 0;
}
Here is my html:
HTML Code:
<div id="cyclewrap">
<div id="cycleimages">
<img alt="" height="333" src="images/img1.jpg" width="900" class="first" />
<img alt="" height="333" src="images/img2.jpg" width="900" />
<img alt="" height="333" src="images/img3.jpg" width="900" />
</div>
</div>
<div class="cycleprev"><a href="#"> </a></div>
<div class="cyclenext"><a href="#"> </a></div>
<div id="cyclewrapnav"> </div>
Bookmarks