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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:41:29+00:00 2026-06-06T14:41:29+00:00

I am using the following code to attempt to get the font color of

  • 0

I am using the following code to attempt to get the font color of my navigation links to animate on hover/off hover. The border bottom color changes correctly but the font color does not. Also it is throwing off my current-menu-item CSS rule for a different color. The desired behavior would be for the font color to go blue on hover and revert to off white off hover, unless it is the current-menu-item which should be font color yellow. I am a novice at this so please excuse my lack of style. I have included the jQuery UI file for color support. Any help is greatly appreciated. Full example can be seen here http://www.buenolisto.com/alma

JS

        jQuery("li.social").hover(function(){
        jQuery(this).find("img").stop(true, true).animate({'marginTop': "-=20px"}, 'fast');
    }, function(){
        jQuery(this).find("img").stop(true, true).animate({'marginTop': "+=20px"}, 'fast');
    })
    jQuery("li.reservas").hover(function(){
        jQuery(this).find("img").stop(true, true).fadeOut({'marginTop': "-=30px"}, 'slow');
    }, function(){
        jQuery(this).find("img").stop(true, true).fadeIn({'marginTop': "+=30px"}, 'slow');
    })
    jQuery('ul.menu li a').hover(function() {
        jQuery(this).stop(true, true).animate({'borderBottomColor': "#2E9ECE",'color': "#FEFEFE"}, 'slow');
    }, function() {
        jQuery(this).stop(true, true).animate({'borderBottomColor': "#FFDF85",'color': "#2E9ECE"}, 'fast');
    }) 
  • 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-06T14:41:30+00:00Added an answer on June 6, 2026 at 2:41 pm

    To answer one part about the font colours. The colours are the wrong way around!

    'color':'#2E9ECE' should be in the first function inside the .hover() and #FEFEFE should be in the second function.

    The full updated code should be:

    jQuery('ul.menu li a').hover(function() {
        jQuery(this).stop(true, true).animate({borderBottomColor:'#2E9ECE', color:'#2E9ECE'}, 'slow');
        Cufon.refresh(this);
    }, function() {
        jQuery(this).stop(true, true).animate({borderBottomColor:'#FFDF85', color:'#FEFEFE'}, 'fast');
        Cufon.refresh(this);
    }) 
    

    Note: With the animate({}) syntax, you do not need to quote the properties.

    Edit: Second part of the question:

    To exclude the currently selected menu item from the hovering code you can update the jQuery selector to .not() include the list item with the current-menu-item class

    jQuery('ul li a:not(.current-menu-item)').hover(...)
    

    which should fix the second part of your problem.

    Edit 2: Since you are using Cufon to render the fonts, you need to refresh that after setting the using jQuery otherwise it will be rendered in the colour the text was originally (which is white). Adding Cufon.refresh(this); to both methods might have some effect but I can’t test it since you didn’t provide editable source code.

    After reading up on this, I don’t think Cufon fonts can be animated – see https://groups.google.com/forum/?fromgroups#!topic/cufon/RFfz6DDY0wU so you should either use CSS3 fonts, which can be animated or keep the Cufon fonts and simply have the font color change from white to blue on hover, rather than be animated.

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

Sidebar

Related Questions

I am using the following code to attempt to redirect a dynamic URL to
I'm using the following code in an attempt to show a dialog with a
I'm using the following code attached to a button, to attempt to open a
Using following code I try to get updated list of checkbuttons' corresponding text values,
I using following code: var search = 'test'; if ($('#sku').find(search) ){ //alert(search); $(document).find(search).css('color','red'); <TABLE>
Even though the following works: http://jsfiddle.net/N7D5r/ My attempt at using the same code does
I am using following code to get all the pages of pages WCF Service:
I am using the following code as I attempt to connect to my Outlook
I'm using the following snippet of code to attempt to copy a file from
The following code (without showing it all) is my first attempt at using classes.

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.