I've been looking at some IE fixes (a la IE7) via jQuery for a while. It's not a top priority, but I'm happy to share what I've learned vis a vis stylesheets, parsing, and using jQuery to fix IE bugs.

-- Yehuda

On 11/2/06, Klaus Hartl <[EMAIL PROTECTED]> wrote:
Hartman, Matthew schrieb:
> 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?


Matthew, a while back I wrote a super easy to use snippet you can put
into your IE's extra style sheet... it uses dynamic properties, no need
for an external _javascript_, jQuery, HTC or whatever:

CSS:

.whatever:hover, .whateverhover {
     background: #eaeaea;
}


IE EXTRA:

.whatever {
     behavior: _expression_(
                     this. Function("this.className +=
' whateverhover';"),
                     this. Function("this.className =
this.className.replace(' whateverhover', '');"),
                     this.style.behavior = null
     );
}

http://www.stilbuero.de/2005/07/19/whateverhover-fast-and-easy/

Although with jQuery it would be pretty easy as well...


HTH, Klaus

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



--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to