Solved

unwanted blinking button images in asp.net web site

Posted on 2011-09-28
2
398 Views
Last Modified: 2012-05-12
I'm using css to change the image of a over button and a normal button but the space blink when the mouse passes over the button for the first time and changes the image.

Can i avoid this? is a better way then css?

.Home
{
    display: block;
    width: 116px;
    height: 49px;
    background: url('../images/Home.jpg') bottom;
}
.Home:hover
{
    background: url('../images/HomeOver.jpg') bottom;
}
0
Comment
Question by:girosoft
2 Comments
 
LVL 17

Accepted Solution

by:
Carlos Villegas earned 500 total points
ID: 36758310
Hello, just the first time? then your images are not being cached... also you can try adding this somewhere in your aspx page (preferably before your button):
<img alt="" src="../images/Home.jpg" style="display: none;" />
<img alt="" src="../images/HomeOver.jpg" style="display: none;" />

Open in new window

0
 

Author Closing Comment

by:girosoft
ID: 36813958
Great, it works perfect, thanks.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to make a Gridview column hidden (visibility false) in the HTML code? 2 26
asp.net mvc5 6 29
reading excel file in .net 2 31
asp.net figure out error 3 21
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question