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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:15:51+00:00 2026-05-18T05:15:51+00:00

For giggles, I’m creating an image free, but interacting website. On the menu, I

  • 0

For giggles, I’m creating an image free, but interacting website. On the menu, I want each item to fade to gray on mouseover, and then fade back to white on mouseout. Currently, all of the menu items fade in unison. For many who inspect my code, you’ll surely see why in quick time. I’m just too new to it.

Link to site: Zero Img Site

jQuery stuff:

<head>
    <title>Imageless Website in HTML5, jQuery and CSS</title>
    <link rel="stylesheet" href="css/main.css" type="text/css" />
    <!-- <script type="text/javascript" src="js/CreateHTML5Elements.js"></script> -->
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/color/jquery.color.js"></script>

</head>

<script>
$(document).ready(function(){
        $(".block").mouseover(function(){
        $(".block").animate( { backgroundColor: '#777777' }, 100)
    });
        $(".block").mouseout(function(){
        $(".block").animate( { backgroundColor: 'white' }, 200)
    });
});
</script>

HTML Stuff:

<a href="http://www.example.com">
    <div class="block">
        home
    </div>
</a>

<a href="http://www.example.com">
    <div class="block">
        about
    </div>

</a>

<a href="http://www.example.com">
    <div class="block">
        contact
    </div>
</a>

</nav>
  • 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-18T05:15:52+00:00Added an answer on May 18, 2026 at 5:15 am

    You need to change the .block selectors in the mouseover functions so they simply act on the element you are mouseovering. You do this by using the keyword this.

    $(".block").mouseover(function(){
        $(this).animate( { backgroundColor: '#777777' }, 100)
    });
    $(".block").mouseout(function(){
        $(this).animate( { backgroundColor: 'white' }, 200)
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write a simple adder (for giggles) that adds up every argument
I am in the process of creating a little codewriting training game for giggles.
I'm working on a scoring script for contract bridge, just for giggles. I'm storing
You have to promise not to giggle, but my situation is following: Instead of
I know that google goggles will translate a picture to text. What I want
I've recently tried using branches in git but while they work allright whatever I
I'm trying to do some ROI (region of interest) selection in my app, but
My app supports users down to 1.6 (API level 4) and I want to
I know there are ways, but is there actually a good way? At the
I'm looking to write a small proxy server for kicks and giggles. Apart from

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.