Register
Login
 

Support House of Nuke

  

 House of Nuke Forums  
Subject: Slow response using IE after some nested menus
Prev Next
You are not authorized to post a reply.

Author Messages
Marko BiskupUser is Offline
Novice
Novice
Posts:2

11/29/2007 8:04 AM Alert 
Hi!

I had a problem using the housemenu or any other menu using javascript to register onMouseOver events through javascript to use :hover event.
What I found out was that the house menu was doing was changing the className of the specified object once the user would hover over it. This isnt really a problem for individial items rather than nested ones, because the event is bubble type which means it will throw the event for all the parent items as well. And there you have it, a serious performance problem. So what i did, was to hide all the menu items (UL's) in the ieModuleHoverFix method using .style.visibility = "hidden" as well as set the .style.left property to "auto". then once the user rolls over the item I just show it using: style.visibility = "visible" and the result is MUCH MUCH MUCH fater rendering of menu items. People give it a shot and if you have any questions drop me a mail to: helidium@hotmail.com
Marko BiskupUser is Offline
Novice
Novice
Posts:2

11/29/2007 8:08 AM Alert 

 for (j=0; j < ieULs.length; j++) {

  ieULs[j].innerHTML = ('iframe src="false;" scrolling="no" frameborder="0">/iframe>' + ieULs[j].innerHTML);

  var oShim = ieULs[j].firstChild;

  oShim.style.width=ieULs[j].offsetWidth+"px";
  oShim.style.height=ieULs[j].offsetHeight+"px";
  
  ieULs[j].style.visibility = "hidden";
  ieULs[j].style.left = "auto";
 }

 /** IE script to change class on mouseover **/

  var ieLIs = oMenu.getElementsByTagName("LI");

  for (var i=0; i)>   ieLIs.onmouseover=function() {if(this.childrenΏ]) this.childrenΏ].style.visibility = "visible";}
   ieLIs.onmouseout=function() {if(this.childrenΏ]) this.childrenΏ].style.visibility = "hidden";}
  }

mike emondUser is Offline
Novice
Novice
Posts:1

12/10/2007 1:47 PM Alert 
Hi. I have a bad slow down problem in IE that is not showing up in Firefox and I thought this might be the solution. However I inserted the code above and nothing changed. I'm not very good with all this so can someone tell me if I need to do something further or if I did something wrong? My js file in its entirety is below. Thanks, Mike

.... actually its not posting my code correctly. How do I enter code in this editor?
You are not authorized to post a reply.
Forums > House Modules > HouseMenu 1.x > Slow response using IE after some nested menus



ActiveForums 3.6
  

Terms Of Use  |  Privacy Statement
Copyright © 2006-2008 by Avastone Technologies. All rights reserved.