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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:39:10+00:00 2026-05-31T22:39:10+00:00

Inside a page I am having a TR on which when user click it

  • 0

Inside a page I am having a TR on which when user click it change it’s color to blue and arrow color to white. This is achieved by changing elements’ class dynamically.

But due to this what happen is, when user click on TR user saw image loading delay. How to preload that CSS image.

this.className = this.className + " active";

CSS

.table td.arrow div {background-image:url("../stuff/arrow.png");}  
tr.active td.arrow div { background-image:
url("../stuff/arrow_active.png"); }

Image

Update
One more thing want to update that static content is getting loaded from other server.

  • 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-31T22:39:11+00:00Added an answer on May 31, 2026 at 10:39 pm

    The browser only loads images from the CSS that are shown. So you could place your arrow_active image in a element, that is visible but has no opacity.

    But i would suggest you use sprites: Less HTTP requests + no preloading problems: css-tricks.com/css-sprites , alistapart.com/articles/sprites

    You could solve your problem like this with pure CSS.

    http://jsfiddle.net/Q6dTf/

    Alternatively you could use a :before pseudo element if you dont want to add a new HTML element.

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

Sidebar

Related Questions

I'd like to enforce a requirement that client script inside a page (which in
I have a WinForms application in which I have hosted a web page inside
iam having a jsp page Index.jsp which accept a only unicode string as its
I am having trouble figuring out how to implement this. I am returning user
I seem to be having a strange problem which I can't fully understand. This
Having a strange problem with a page set to 100% fluid width which has
How can i delete a directory having subdirectory inside it which is not empty.
I'm having the following problem: I have a page where a user inserts text
Instead of having a user enter their age (e.g. 27) inside a textbox or
Inside my page, I have the following: <aspe:UpdatePanel runat=server ID=updatePanel> <ContentTemplate> <local:KeywordSelector runat=server ID=ksKeywords

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.