473,657 Members | 2,800 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:hove r{
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:hove r blocks are present in my page.
I have another problem:

Consider:

<div class="button" onmouseover="th is.className='b uttonover'"
onmouseout="thi s.className='bu tton'">
<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 3407
On 30 Apr 2004 09:03:52 -0700, lo******@carama il.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.stylesheet s 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.javas cript 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
2780
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. It works as expected with IE6. Is this a known problem ? Is there any workaround ? Patrice
4
13946
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. Does anyone know any code to have the DIV scroll from left to right when I use an onmouseover on two images either side of the DIV? Thanks Laurie
7
1630
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 could be done by going through the forms collections. Here is my code but I need help addressing each from using a variable name. Please help me with the syntax. Private Sub UpdateFormColors(NewColor as long) Dim obj As AccessObject, dbs As...
2
2723
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. Replicate-Problem: Scrolldown the textbox and put the mouse over a row.
7
2791
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. Replicate-Problem: Scrolldown the textbox and put the mouse over a row.
2
3348
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 from QuirksMode to grab the location of the mouse, I've built a tooltip function to show a tooltip to the user depicting the target of a link, the problem is when you mouse over the box that the tooltip function is attatched to the tooltip...
2
3014
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 length. <html> <head> <title>Rapid Blocking Interface</title> <style> .calendar {
5
4268
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 navigate to other pages. I want to install the ability to onMouseOver the hyperlinks on the jspf to produce submenus that will navigate to other pages. I know that in Netbeans I can go to the properties of the hyperlinks and fill in the javascript in the...
0
8316
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8833
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8509
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6174
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
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.