How do I target a "Cycle #anchor" from an external page link?
Hello all,
I have Cycle "pager" navigation working flawlessly in one of my pages. What i'm trying to do is this:
• I'm Attempting to LINK to specific Anchors from a link on a different page.
Example:
// external page link //
<a href="http://www.convertstyle.com/beta/apparel/womens-apparel#shirt1">Headline Womens</a>
(using a simple anchor reference to try to target the specific anchor inside Cycle)
The link will not display the desired anchor like the navigation link on the destination page
WILL. Do I need to alter this function:
$(function() {
var randomnumber = Math.floor(Math.random()*0)
$('#loves-show').cycle({
speed: 500,
timeout: 0,
prev: '.prev-pic',
next: '.next-pic',
pager: '#loves-nav',
startingSlide: randomnumber,
pagerAnchorBuilder: function(idx, slide) {
// return sel string for existing anchor
return '#loves-nav li:eq(' + (idx) + ') a';
}
});
});
Any help will be much appreciated. let me know if i need to be more specific...more than likely I'll need to.