why this strange behaviour on ie6/7

Posted on 2011-05-04
Medium Priority
Last Modified: 2012-08-13
Dear Experts,
 I used this particular css image roll over intentionally to avoid javascript imagechange and other css tricks as dis  provided the best & perfct situation on my application Untill i find this peculiar behavior on d ie6/7 brwser , whn i click d image button it causes postback after that  the mouseptr is still on the on d image and it displays hover image but it takes two clicks
for to cause postback when i move the mouse pointer and then bring back to the image  den it works properly . How to sort this issue?
Requirement:Image Change On Hover
Issue : IE $1X/$EVEN after postback , Improper behavior on hover of imagebutton  

waiting for ur valuable suggestion

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
.chan {
width: 16px;
height: 16px;
background-image: url(icon.gif);

.chan a {
color: #fff;
width: 16px;
height: 16px;
display: block;
text-decoration: none;
.chan a:hover {
.chan a span {
display: none;
width: 16px;

.chan a:hover span {
display: block;
<form id="form1" runat="server">
<div class="chan"><a  href="#"> 
    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/info-over.gif" />

Imports System.Threading
Partial Class Default2
    Inherits System.Web.UI.Page
    Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles ImageButton1.Click
    End Sub
End Class

Open in new window

Question by:Rajar Ahmed
  • 2

Expert Comment

ID: 35692601
Whats u want to do? Why are you using THREADS here?
LVL 18

Author Comment

by:Rajar Ahmed
ID: 35692633
dats just to show sum action on imagebutton click.
i want to do image change on hover .

Accepted Solution

deegoy418 earned 2000 total points
ID: 35696549

I have created a sample html page, in this you will the image is changing on hover.

let me know if this solution doesn't work for you .

deepak button-html.zip
LVL 18

Author Comment

by:Rajar Ahmed
ID: 35700027
hi deegoy418,

  There r few reason why i followed my approach since
   ie6 got issues when we change the image on hover or using javascript it downloads d image each time from d server and make d progress bar work so badly .
They said it is d bug :

As my example will overcome the problem faced by us but i dont know y on postback if we dint move d mouse, still on d same image and if we click d imagebutton  its not triggering postback

y it is ?

your Example dint worked on ie and also combined image is tds process now as all images  are kept seperately

Thank u For Response .

Hope to see some brighter side of this issue soon

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

840 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