I just went through this with JTip so something like this snippet, which 
is very small and would be a minimal impact to the core size, would be 
very beneficial.

Rey...

Mark Gibson wrote:
> Hi,
> I was thinking that due to it being such a common problem, I'd like to
> suggest adding the iframe hack for IE to the jQuery core.
> (To hide <select> elements beneath a positioned element)
> 
> The plugin below appends an iframe with the necessary css so that you
> don't need any messy hacks in your normal CSS stylesheets.
> 
> I've made use of IE's CSS expression() to resize the iframe to match the
> parent element - the previous suggestions of 3000px caused select's to 
> the left or below to disappear.
> 
> I've only tested in IE6, will it work in IE 5/5.5?
> Is it needed for IE7?
> 
> $.fn.iframehack = function() {
>       if ($.browser.msie)
>               return this.append('<iframe 
> style="display:block;position:absolute;top:0;left:0;z-index:-1;filter:mask();width:expression(this.parentNode.offsetWidth);height:expression(this.parentNode.offsetHeight)"/>');
>       else
>               return this;
> };
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 

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

Reply via email to