Editing the LMC button which copy to clipboard
<p>I have some problems with <a href="http://www.lettersmarket.com/view_blog/a-3-copy_to_clipboard_lmcbutton.html" rel="nofollow">LMC Button</a> because of the way it is coded.</p>

<pre><code>ShowLMCButton('Copied Text Here');
</code></pre>

<p>An image "Copy" is loaded when the page loads, with the words "Copied Text Here" being copied to clipboard when the image is clicked on.</p>

<p>If I do this:</p>

<pre><code>var text = "New Text";
ShowLMCButton(text);
</code></pre>

<p>The words "New Text" is copied to the clip no problem, but the variable text have to be there on page load. There is no way I can change the words.</p>

<p>This is the ShowLMCButton function</p>

<pre><code>function ShowLMCButton(cliptext, capt, js, furl)
{
 var params = 'txt=' + encodeURIComponent(cliptext); 
 if (!isNotEmpty(furl)) { furl = "clippy/lmcbutton.swf"; }
 if (isNotEmpty(capt)) { params += '&amp;capt=' + capt; }
 if (isNotEmpty(js)) { params += '&amp;js=' + js; }

document.write('&lt;object width="40" height="20"&gt;');
document.write(' &lt;param name="movie" value="' + furl + '"&gt;');
document.write(' &lt;PARAM NAME=FlashVars VALUE="' + params + '"&gt;');
document.write(' &lt;embed src="' + furl + '" flashvars="' + params + '"  width="40" height="20"&gt;&lt;/embed&gt;');
document.write('&lt;/object&gt;');

//alert('file: ' + furl + ' Params: ' + params); // debug
}
</code></pre>

<p>How can I copy text that I type in a textarea/input textfield?</p>

<p><a href="http://www.lettersmarket.com/uploads/lettersmarket/lmcbutton/demo_lmcbutton.html" rel="nofollow">Here is the demo of the button</a></p>
