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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:46:37+00:00 2026-05-26T19:46:37+00:00

I have an image with 5 logo’s and I’d like each logo to change

  • 0

I have an image with 5 logo’s and I’d like each logo to change individually from greyscale to color on hover. The obvious solution is to chop the image into the separate logo’s with each having both a greyscale and color version and then do a standard css rollover.

However, I can’t increase the page load with 5 additional image hits. Is it possible to do this using jquery and one large sprite with all 5 logo’s in both greyscale and color and somehow detect which area of the image is being hovered over so the associated color version can then be shown?

  • 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-26T19:46:38+00:00Added an answer on May 26, 2026 at 7:46 pm

    You don’t want to fiddle with cursor location if you can avoid it. Actually, what you probably want to do is create a CSS sprite – it’s one image file that contains all 10 logos (5 color, 5 greyscale). That way, the browser only has to load one image. Then, using CSS, you display pieaces of that image as the background image for your various elements, and vary which piece is displayed using the :hover pseudoclass.

    This page will get you started:
    http://www.w3schools.com/css/css_image_sprites.asp

    And I like to use this page to create sprites and the CSS that goes with it.
    http://spritegen.website-performance.org/

    Note that this is a somewhat difficult technique to get working the first time, but it saves lots of time and bandwidth in the long run.

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

Sidebar

Related Questions

img src=Images/MainMaster/TruckImg.gif id=imgCompanyLogo alt=Company Logo /> I have an image that i would like
I have an image on my master page like this: <img src=../Images/logo.jpg /> The
Assume I have an image uploaded to a store on Shopify called 'logo.png'. In
I have this code snippet in an email layout: <div> <?php echo $this->Html->image('Layouts/default/Logo.png', array(
I have a logo link that's using a background-image (css sprite). All works fine,
I have a PDF which has an image on it (a logo) I want
i have a image ,i want to launch url when i press that logo
I have a logo image across the entire top of my website page. The
I have been able to customize the action bar's background, logo image and text
Is it possible to have a partially transparent background/image (png logo with shadow) positioned

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.