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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:53:56+00:00 2026-06-07T12:53:56+00:00

I am using CSS sprite by using div tags.But in the below code there

  • 0

I am using CSS sprite by using div tags.But in the below code there is JavaScript and I can’t keep sprite to that.Is it possible to keep the CSS sprite to the below code? Image is in onmouseover function.

<a href="" target="_blank" onmouseover="MM_swapImage('Image52','','social-rss-h.png',1)" onmouseout="MM_swapImgRestore()">
  • 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-07T12:53:58+00:00Added an answer on June 7, 2026 at 12:53 pm

    Try to add a class/id for links you want to sprite (you can add sprite to links, but, for organization, I prefer classes/id)

    a.sprite {
        background-image: url(images/menu.gif);
        background-position: 0 0;
        background-repeat: no-repeat;
    }
    a.sprite:hover {
        background-position: 0 -60px 
    }
    
    
    <a class="sprite" href="" target="_blank" onmouseover="MM_swapImage('Image52','','social-rss-h.png',1)" onmouseout="MM_swapImgRestore()">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using CSS and an image sprite for my navigation (code below). This
I have a logo link that's using a background-image (css sprite). All works fine,
Is the only benefit of using css image sprites that there is less http
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain
Using CSS, when a link is clicked it brings up a hidden DIV that
So, I'm looking to do a background image in CSS using a sprite sheet.
I just wrote a js code for a slideshow, using only one image (sprite).
I have small animation using javascript and css. I made one sprite png file,
I am using an image sprite that consisting of four sub-images: four corners for
Is it possible I can load an image sprite only when needed? For example

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.