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

  • Home
  • SEARCH
  • 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 8519811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:21:26+00:00 2026-06-11T06:21:26+00:00

I have a jquery banner cycle with navigation that auto rotates. The navigation is

  • 0

I have a jquery banner cycle with navigation that auto rotates. The navigation is set up in a list, where the active slide has an LI class of activeSlide:

<ul id="billboard-nav">
    <li class="activeSlide"><span class="overlay">NAV1</span></li>
    <li><span class="overlay">NAV2</span></li>
    <li><span class="overlay">NAV3</span></li>
</ul>

Jquery set so .overlay is opacity 0, and on hover, it changes to opacity 1.

<script>
$(function() {  

    $("#billboard-nav li .overlay").css({ opacity: 0 });

    $("#billboard-nav li").hover(
        function() {$(this).children('.overlay').stop().animate({"opacity": "1"}, 100);},
        function() {$(this).children('.overlay').stop().animate({"opacity": "0"}, 1200);}
    );

});
</script>

This works well, except I need the .activeSlide .overlay to stay at opacity: 1. I can set opacity:1!important through the stylesheet, but this is CSS3 and not supported by ie7,8. A JS solution would be much preferred.

Any help would be appreciated. Thank you.

  • 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-06-11T06:21:28+00:00Added an answer on June 11, 2026 at 6:21 am

    Just add a Condition and check if the current li has a activeSlide class.. If yes then do nothing..

    $(function() {
    
        $("#billboard-nav li .overlay").css({
            opacity: 0
        });
    
        $("#billboard-nav li").hover(
    
        function() {
            $(this).children('.overlay').stop().animate({
                "opacity": "1"
            }, 100);
        }, function() {
            if ($(this).hasClass('activeSlide')) {
               // Because this has ActiveSlide class do nothing
            }
            else {
    
                $(this).children('.overlay').stop().animate({
                    "opacity": "0"
                }, 1200);
            }
            });
    
        });​
    

    check FIDDLE here

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

Sidebar

Related Questions

I have a jquery slideshow that that uses a navigation list to switch out
I have jquery with class= modal i want to call that class when page
I have some html in a jQuery variable var banner = $(<div class='banner-textarea'></div>); hot
I have jQuery draggable set up and working ok on a table row. Currently
I have jQuery to select all font elements that are children of the element
I have 4 banner images, and I want to cycle through them using a
I have a jQuery script that fades in and fades out between containers inside
I have used the s3Slider jquery plugin to create nice banner animations in both
little stuck on this jquery. I have a banner above my nav bar, which
I'm using a combination of Jquery and html imagemap to have a banner with

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.