Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 546275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:50:59+00:00 2026-05-13T10:50:59+00:00

I am using the Cycle plugin for JQuery to create a banner rotator with

  • 0

I am using the Cycle plugin for JQuery to create a banner rotator with the pauseOnHover functionality. I have it working properly and even have the pageAnchorBuilder working correctly so that it displays an image vs ‘1,2,3, etc. The problem is it can’t find the images because I am not using images as the selector but divs.

How can I change the following code to let me specify which unique image to display for each slide (div)? When I place the image url (../images/tab.png) in the img src tag it displays a broken link. Even if that was to work it would not accomplish what I am trying to do, display a unique image per div.

I am trying to create a javascript version of something like this: http://www.bazaarvoice.com

Here is my code:

banner.js

$(document).ready(function() {
    $('.slideshow').cycle({
        speed:      200,
        timeout:    15000, 
        pager:      '#tabs',
        pagerEvent: 'mouseover',
        pauseOnPagerHover: true,
        pagerAnchorBuilder: function(i, slide){// callback fn for building anchor links:  function(index, DOMelement) 
    return '<a href="path-to-link"><img src="' + slide.src + '" height="47" width="189" /></a>';
}


    });
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T10:50:59+00:00Added an answer on May 13, 2026 at 10:50 am

    I think you have the wrong idea of what the pagerAnchorBuilder function actually is. You should already have the elements in the DOM and be returning the JQUERY SELECTOR for those elements, which corresponds to each of the slides (usually by the index passed to the function). View one of the demos here. It may help you get a better understanding of what’s going on there.

    If you’re trying to build a cycle that scrolls through anchors, you have to do nothing more than include your anchor HTML markup inside the (presumably) div.slidehow:

    <div class="slideshow">
       <a href="path-to-link1"><img src="/images/src1.png" height="47" width="189" /></a>
       <a href="path-to-link2"><img src="/images/src2.png" height="47" width="189" /></a>
    </div>
    

    and the Cycle Plugin will do it for you. There are some limitations to using images inside anchors with this plugin, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 261k
  • Answers 261k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Pcap::Capture#each or Pcap::Capture#each_packet takes an optional count argument. If it… May 13, 2026 at 11:33 am
  • Editorial Team
    Editorial Team added an answer See also How to keep the console window open in… May 13, 2026 at 11:33 am
  • Editorial Team
    Editorial Team added an answer Looks like it's not so much that "adams" isn't replaced,… May 13, 2026 at 11:33 am

Related Questions

I am using the JQuery Cycle plugin to flick through a bunch of divs
Im trying to make a gallery piece for my website. I know there are
I am using the cycle plugin with pager functionality like this : $j('#homebox') .cycle({
I'm using the JQuery Cycle Plugin in an attempt to fade in/out images for
I am currently developing a site for a client which uses the JQuery cycle

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.