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/

Reply via email to