Textfill for jQuery 1.6? (not working)
<p>I hope you can enlighten me. I'm trying to use GeekMonkey's textfill plugin in a joomla website which has jQuery 1.6.1 (the template uses it). The plugin is not working. Is there any way to fix this? I can't find any other textfill out there!</p>

<p>This is GeekMonkey's plugin:</p>

<pre><code>; (function($) {
    /**
    * Resizes an inner element's font so that the inner element completely fills the outer element.
    * @author Russ Painter WebDesign@GeekyMonkey.com
    * @version 0.1
    * @param {Object} Options which are maxFontPixels (default=40), innerTag (default='span')
    * @return All outer elements processed
    * @example &lt;div class='mybigdiv filltext'&gt;&lt;span&gt;My Text To Resize&lt;/span&gt;&lt;/div&gt;
    */
    $.fn.textfill = function(options) {
        var defaults = {
            maxFontPixels: 40,
            innerTag: 'span'
        };
        var Opts = jQuery.extend(defaults, options);
        return this.each(function() {
            var fontSize = Opts.maxFontPixels;
            var ourText = $(Opts.innerTag + ':visible:first', this);
            var maxHeight = $(this).height();
            var maxWidth = $(this).width();
            var textHeight;
            var textWidth;
            do {
                ourText.css('font-size', fontSize);
                textHeight = ourText.height();
                textWidth = ourText.width();
                fontSize = fontSize - 1;
            } while ((textHeight &gt; maxHeight || textWidth &gt; maxWidth) &amp;&amp; fontSize &gt; 3);
        });
    };
})(jQuery);

$(document).ready(function() {
    $('.jtextfill').textfill({ maxFontPixels: 36, innerTag: 'h1' });
});
</code></pre>

<p>And</p>

<pre><code>$(document).ready(function() {
            $('.jtextfill').textfill({ maxFontPixels: 70 });

            $('#dyntext').keyup(function() {
                $('.dyntextval').html(this.value);
                $('.jtextfill').textfill({ maxFontPixels: 70 });
            });
        });
</code></pre>

<p>Thanks in advance,
desperate user.-</p>
