php forum
php mysql forum
php mysql smarty
 
Topic Options
#110007 - 05/10/06 04:38 AM CSS :hover in Internet Explorer, hover-off event
Delee Offline
Junior Member

Registered: 05/10/06
Posts: 1

    CSS :hover in Internet Explorer, hover-off event  to Del.icio.us Add to del.icio.us
  Digg  CSS :hover in Internet Explorer, hover-off event Digg it
I am using the :hover property from CSS for A links (since IE doesn't support other elements) to create mouse overs for a graphical menu. Firefox and Opera both currently display correctly and Internet Explorer appears to do so as well at first glance.

However, when the mouse is moved quickly, the mouse-out event appears to not trigger. The :hover graphic sticks. The following image demonstrates this:

http://img204.imageshack.us/img204/6646/mouseoverfailie5vf.gif

If anyone has any ideas on solving this problem please let me know. I'm NOT using any Javascript and I did try to make use of display: block;, but that didn't help.

***
Code:
<!-- Background image for each tab. -->
<div class="tabs">

   <!-- Encloses all graphics containing tab text. -->
   <div class="tab_text">

       <!-- Uses an empty pixel as the main image,
       with the background changing on mouse over. -->
       <a href="" class="tab_home">
           <img src="_.gif" class="tab tab_home">
       </a>
   </div>
</div>

***
Code:
/* Background image for the tab set. */
DIV.tabs {
   width: 82px;
   height: 396px;

   position: absolute;
   top: 96px;
   left: 806px;
}

/* Div that encloses all the tab text images. */
DIV.tabs DIV.tab_text {
   width: 41px;
   height: 396px;

   position: absolute;
   top: 0px;
   left: 0px;
}

/* Styles pertaining to all tab images. */
DIV.tabs A IMG.tab {
   width: 28px;

   position: relative;
   left: 6px;
   z-index: 6;
}

/* Style pertaining to the Home link. All others have the same type of code, just different sizing and images. */
DIV.tabs DIV.tab_text A.tab_home IMG.tab_home {
   height: 63px;
   top: 16px;

   background-image: url('tab_text_home.gif');
}

/* Style on mouse-over of the Home link. */
DIV.tabs DIV.tab_text A.tab_home:hover IMG.tab_home {
   background-image: url('tab_text_home_mo.gif');
}


Edited by Ian Spence (07/29/06 08:41 AM)

Top
#110008 - 05/11/06 06:14 PM Re: CSS :hover in Internet Explorer, hover-off event fails.
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25419
Loc: Texas
They had to use javascript to get image hovers to work correctly in IE:

http://www.alistapart.com/articles/hybrid
_________________________
- Allen wavey
- What Drives You?

Top


Top Posters Last 30 Days
AllenAyres 20
Gizmo 10
blaaskaak 2
S7ARBVCK 2
Iann128 1
Claus1 1
M4D 1
Who's Online
0 Registered (), 33 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Security Patch released for all 7.x versions
by AllenAyres
Yesterday at 08:00 PM
What do you use to edit the files
by AllenAyres
Yesterday at 07:54 PM
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 07:32 PM
Here I am! Rock me like a Hurricane!
by AllenAyres
Yesterday at 07:20 PM
BeyondCompare v3.00
by AllenAyres
Yesterday at 07:16 PM
[7.3.1] add search to showmembers page
by AllenAyres
Yesterday at 07:13 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Yesterday at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks