Hey guys.

 

Has anyone attempted to rewrite csshover.htc (http://www.xs4all.nl/~peterned/csshover.html) using jQuery?

 

I’m using csshover.htc in our clinical portal for a CSS menu similar to one off of Position is Everything (http://www.positioniseverything.net/css-dropdowns.html). I’ve modified the CSS slightly to include arrows on anchor tags that contain submenus. Unfortunately our menu’s larger than that of the sample at 101 items with 21 submenus. Hovering between menu items in a submenu that contains around 14 items (it’s a list of departments within a “Reporting” tab) shows a noticeable delay.

 

I’ve tweaked csshover.htc to use do/while’s rather than for’s and added a few other optimizations. It typically takes around 150ms per page for csshover.htc to process now rather than the original 270-300. It just occurred to me that jQuery’s selectors may in fact be faster than the recursive process Nederlof uses. Plus, a plugin could give the option to apply the new hover abilities to a specific group of elements rather than the entire page.

 

Back to the original question, has anyone given this a shot?

 

Thanks,

 

Matthew Hartman

Programmer/Analyst

Information Management, ICP

Kingston General Hospital

(613) 549-6666 x4294  

 

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to