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 923001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:07:24+00:00 2026-05-15T19:07:24+00:00

I have created the following example to illustrate a problem I have with a

  • 0

I have created the following example to illustrate a problem I have with a jquery tools slideshow. I want the list of headlines at the bottom to highlight as I scroll over the navigation dots below the content pane.

http://testing.lukem.co.uk/slider/slideshow.htm

It’s a while since I’ve done any javascript or jquery so any pointers gratefully received!

I think I may be able to acheive it using the API and / or the tab index.

Many thanks,

  • 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-15T19:07:24+00:00Added an answer on May 15, 2026 at 7:07 pm

    It’s not pretty, but I hacked this together quickly:

    $(".slidetabs a").mouseover(function() {
        // clear styles from the other elements
        $(".headline-list a").removeClass("current");
        // find the corresponding headline and highlight it
        $(".headline-list a:eq(" + $(this).index() + ")").addClass("current");
    });
    

    Hope it helps.

    Also, you really should wrap all your DOM-referencing code in a handler that you pass to the document.ready() function, which will ensure that it runs only after the DOM has been fully generated. If you don’t, it’s kind of a pot-shot as to whether the elements you reference in your script (“.slidetabs”, for instance) will actually exist on the page when you try to query for them. Here’s an example of using document.ready() with your code:

    $(document).ready(function() {
        // What is $(document).ready ? See: http://flowplayer.org/tools/documentation/basics.html#document_ready
    
        var api = $(".slidetabs").tabs(".images > div",{api: true});
    
        api.onClick(function (tabIndex) {
            console.log(tabIndex);
          if (tabIndex === 0) {
            $("headline-list > li > a.current").hide();
          }
        });
    
        // removed the shorthand $(function() { }); part
        // since the whole thing is inside the more readable document.ready handler now
    
        $(".slidetabs,.headline-list").tabs(".images > div", {event:'mouseover'},{
    
            // enable "cross-fading" effect
            effect: 'fade',
            fadeOutSpeed: "slow",
    
            // start from the beginning after the last tab
            rotate: true
    
        }).slideshow();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.