your ie hack could have been coded with 1 line in jq! I don't use IE
often, and am not familiar with the comment hacks enough to comment. I
usually say
if($.browser.msie) do_dirty_work

I'm glad it was just the gifs!! the code has now found a place in my arsenal!

On 1/31/07, weide <[EMAIL PROTECTED]> wrote:
> on 2007-1-31 14:02,Ⓙⓐⓚⓔ said the following:
> > $.fn.border = function(prefix){
> >       var classNames = [ 'north', 'east', 'south', 'west', 'northeast',
> > 'southeast', 'southwest', 'northwest'];
> >       return this.each(function(){
> >               for (var index = 0; index < classNames.length; index++){
> >                       className = (prefix || '')+ classNames[index];
> >                       $(this).wrap("<div class='" + className + " 
> > block'></div>")
> >               }
> >       })
> > };
>
> I convert the gif to jpg,the border is OK now! Thanks very much!
>
> The above code works well in FF2 and not well in IE6,need to add IE hack..
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to