I'm using the jQuery Cycle Plugin, and I am trying to add anchor tags around
the images in the slideshow so that the user can click on it to go to
another site.

I saw the example Malsup made at 
http://www.malsup.com/jquery/cycle/test/egil.html
http://www.malsup.com/jquery/cycle/test/egil.html  in which the anchor tags
work great.

I actually copied the same anchor tags that he used in that example. 

Here is my HTML for the slides:

<div id="rockslides"> 
       /about-us/business-strategy/  images/rockslides/rockslide1.jpg  
       /about-us/business-strategy/  images/rockslides/rockslide2.jpg  
       /about-us/business-strategy/  images/rockslides/rockslide3.jpg  
</div>

For some reason, the anchor tags I'm writing above aren't showing up cause
nabble thinks I'm adding a link, so please just look at the source code on
my site below. It's just an anchor tag around images that are all within a
div that is being affected by the jQuery code.


Here is my jQuery:

$('#rockslides').cycle({
                                fx: 'fade',
                                speed: 1000, //How fast the transition is
                                timeout: 5000, //Time length between slides
                                pause: 1, //Causes the slideshow to pause when 
the mouse hovers over the
slide.
                                sync: true,
                                next: '#rocknextbtn',
                                prev: '#rockprevbtn'
                             });


Here is the site in which the anchor tags are not working: 
http://idea-palette.com/official/newofficialsite4a.html
http://idea-palette.com/official/newofficialsite4a.html  

Here is the site without the anchor tags where the slideshow works great,
but without the anchor tags: 
http://idea-palette.com/official/newofficialsite4.html
http://idea-palette.com/official/newofficialsite4.html 


I must be missing something easy, cause I seem to have the same exact code
as Malsup uses in his example. I hope someone can help me out!

-Chris


-- 
View this message in context: 
http://www.nabble.com/Can%27t-get-anchor-tags-to-work-with-Cycle-Plugin-tp22475620s27240p22475620.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to