jquery plugin base frame
<p>Im a Jqery newbe and i try to build a plugin.</p>

<p>But it dont work. Why?</p>

<p>Here is what i have.</p>

<pre><code>&lt;head&gt;

&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;

(function($){

$.alert = function(settings){
    var config = {
    // settings
        'text': "old text",
        'smily': ":(",
    // ...
    };

    if ( settings ){$.extend(config, settings);}
    // variables
    var i = 0;

    // script
    alert(config.text + " " + config.smily);

};

&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function() {
  $.alert(text: "new text", smily: ";)");
});
&lt;/script&gt;
&lt;/body&gt;
</code></pre>

<p>Could somebody help me please. </p>
