473,505 Members | 15,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

slow onmouseover - backgroud position

Hey all,

I've been fighting with IE5/6 because of its being SO slow for
displaying onmouseover effects and even pseudo classes such as :hover!

Here is a code example:

<div id="menu">
<a href="myurl1" class="leftmenu">my link label4</a>
<a href="myurl2" class="leftmenu">my link label2</a>
<a href="myurl3" class="leftmenu">my link label3</a>
<a href="myurl4" class="leftmenu">my link label4</a>
<a href="myurl5" class="leftmenu">my link label5</a>
</div>

With the corresponding css:

#menu a.leftmenu {
background:url(myimage.gif) top left;
width:126px;
height:29px;
overflow:hidden;
display:block;
text-decoration:none;
line-height:29px;
}
#menu a.leftmenu:hover{
background-position:0 -29px;
}

The sliding trick is widely used througout the web ... but the display
remain very slow on IE 5/6, especially when more than one a.leftmenu
and a.leftmenu:hover blocks are present in my page.
I have another problem:

Consider:

<div class="button" onmouseover="this.className='buttonover'"
onmouseout="this.className='button'">
<div class="L"/>
<a class="btnlink" href="myurl">my label</a>
<div class="R"/>
</div>

And the following css

..button .L, .buttonover .L {
background:url(myimage);
width:5px;
height:23px;
}
..button a.btnlink, .buttonover a.btnlink {
display:block;
background:url(myimage) repeat-x;
height:23px;
padding:0 3px 0 0;
color:#000;
text-decoration:none;
line-height:23px;
}
..button .R, .buttonover .R {
background:url(myimage);
width:21px;
height:23px;
margin-right:4px;
cursor:pointer;
}
..buttonover .L, .buttonover a.btnlink {
background-position:0 -23px;
}

How can IE display this so slowly when mozilla-based browsers are so
quick handling it? Is there any workaround? I'm afraid that 85% of
users use IE5/6 :)
Thanks for your answers!
Jul 23 '05 #1
1 3391
On 30 Apr 2004 09:03:52 -0700, lo******@caramail.com (louissan) wrote:
I've been fighting with IE5/6 because of its being SO slow for
displaying onmouseover effects and even pseudo classes such as :hover!
ciwa.stylesheets is over there.
#menu a.leftmenu {
background:url(myimage.gif) top left;


You've read the FAQ about slow mouseovers and actioned on it
presumably?

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2769
by: Patrice | last post by:
There seems to be a bug with the events mouseOut and mouseOver of divs when their position is fixed : when you enter the div with the mouse, three events are fired in this order : over, out, over....
4
13933
by: laurie | last post by:
Hi. I have a DIV section that has many thumbnail images inside it. I have a DIV so all images can fit in a row and the horizontal scroll bar is used to move the thumbnails from left to right. ...
7
1623
by: Hank | last post by:
My boss wants to be able to set the background color of all forms to one color that he selects on our Configuration form.. I'd rather not add a function to every form I have and wondered if it...
2
2717
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
7
2779
by: MrCode2k | last post by:
Hello, Trying to do: I just want a table that I can scroll and that has fixed headers. Problem: I got it to work but when I added the onmouseover event it didn't work anymore....
2
3336
by: Justin Rowe | last post by:
I'm attempting to design a site with alot of dynamic content and intractability, however I've hit a snag when it comes to the function of the onMouseOver and onMouseOut events. Using a bit of code...
2
2996
by: markszlazak | last post by:
I'm a relatively slow response of table cells changing their background color with mouseover/our in IE6 (Win 2K) but the response is fine (fast) in Firefox. Why? The code is below. Sorry about the...
5
4251
by: Silgd1 | last post by:
Hey All.... I am creating web page using Netbeans 6.0. I use A jspf (java server page fragment) that is included in most of the other pages. There are several hyperlinks on the jspf that...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7303
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7018
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5613
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5028
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3176
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.