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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:19:58+00:00 2026-05-14T22:19:58+00:00

I am trying when user clicks on one of the images seen here http://techavid.com/design/test.html

  • 0

I am trying when user clicks on one of the images seen here

http://techavid.com/design/test.html

That the image in background is only thing focused. All icons are greyed out until user clicks and when they do the colored version of the icon is only showing. Currently the color image of each icon appears behind the greyed out version when mouseover not active.

Can this be done?

thank you,
paul

  • 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-14T22:19:58+00:00Added an answer on May 14, 2026 at 10:19 pm

    Please post the code that applies to this problem. That way the people here can respond faster and better without having to dig through your site to find out what’s relevant.

    Anyway, here’s a simple alternative to what you’re trying to do:

    HTML

    <div id="navigation">
      <a id="foo" href="#">&nbsp;</a>
      <a id="bar" href="#">&nbsp;</a>
      <a id="baz" href="#">&nbsp;</a>
    </div>

    CSS

    a#foo {
      background: url('foo-inactive.png') no-repeat;
    }
    
    a#foo:hover,
    a#foo.active {
      background: url('foo-active.png') no-repeat;
    }

    This gives you the hover effect. Do the same for other id’s. Add some padding so that the link is wide enough to display the image in the background. Or use display="block" and width/height attributes.

    Now when someone clicks the image, give it the active class that does, looking at the CSS, the same thing as the :hover effect. If clicking the image brings you to another page, simply add it in the HTML (<a id="foo" class="active"...), if you stay on the same page, do something like this:

    jQuery

    $(document).ready(function() {
    
      // target each link in the navigation div
      $('#navigation a').click(function() {
        // link that you clicked
        clicked = $(this).attr('id');
    
        // make sure that all the others are not active
        // except for the clicked one
        $('#navigation a').each(function() {
          if ($(this).attr('id') == clicked) {
            $(this).addClass('active');
          } else {
            $(this).removeClass('active');
          }
        });
    
        // prevent the default link action
        return false;
      });
    
    });
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Active site can be seen here: http://www.studioimbrue.com/index2.php There are currently two small problems with
I am trying to create a table, whereas when the user clicks on one
I am trying to debug a problem where a user clicks on the button
what happens if an user trying to read HttpContext.Current.Cache[key] while the other one trying
Trying to create a user account in a test. But getting a Object reference
I'm trying to implement a bookmarklet where the user will click one <img/> and
I am trying to create a page that contains a form with one field
I've got some images in my chrome extension that I want the user to
here i have this code that i'm trying where openingHoursView.ohLocation has two values value1
I am trying to build a HTML / Jquery calculator where a user inputs

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.