[jQuery] Newbie--can't get cycle plugin to work with anchor
Hi! I'm really new to web building in general, so I'm guessing that
this is a really newbie question, but I can't get the cycle plugin to
work with anchor. I followed the example given from
http://www.malsup.com/jquery/cycle/anchor.html , but the anchors just
won't work--the images stop cycling right after I put the code in,
actually. I've googled everywhere to try to solve my problem, and I
searched through this discussion site, too, but nothing helped me.
So, I decided to join this group and post this . . .
This is my code:
HTML:
<div id="content">
<div id="slideshow">
<a href="http://www.google.com"><img src="images/content/pic01.jpg"
border="0" /></a>
<a href="#"><img src="images/content/pic02.jpg" border="0" /></a>
<a href="#"><img src="images/content/pic05.jpg" border="0" /></a>
<a href="#"><img src="images/content/pic06.jpg" border="0" /></a>
</div>
</div>
CSS:
#slideshow {
margin: 0;
padding: 0;
width: 543px;
height: 377px;
overflow: hidden;
z-index: -1;
}
Javascript/JQuery:
<script type="text/javascript" src="jquery-1[1].3.2.js"></script>
<script type="text/javascript" src="jquery.cycle.all.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('div#main div#content div#slideshow').cycle({
fx: 'fade',
after: onAfter
});
});
</script>
There's a lot more to the code (of course), but I selected what I
thought was necessary--if you want, I could put my whole entire
website into a zip file and send it to you.
So . . . yeah. Help, please!