Yea, somewhere in this thread, Ken F pointed out a link to a script that 
does have a Mozilla friendly script.  It was an experts-exchange 
address.  I ended up not having to use it because this is for a CMS 
built by another developer that only works in IE anyways, and I didn't 
realize that.

Tony wrote:
> any idea if there is a comparable firefox script?
> 
> tw
> 
> On 10/18/05, Ray Champagne <[EMAIL PROTECTED]> wrote:
> 
>>Hey Jim, thanks.  I never thought of this.  I might borrow your idea for
>>a few sites....
>>
>>Jim Davis wrote:
>>
>>>>-----Original Message-----
>>>>From: Ray Champagne [mailto:[EMAIL PROTECTED]
>>>>Sent: Monday, October 17, 2005 4:49 PM
>>>>To: CF-Talk
>>>>Subject: SOT: JS copy function?
>>>>
>>>>Is there a way to (behind the scenes) copy text to the user's clipboard
>>>>without them having to select and Ctrl-C it?  I know that the plug-in
>>>>for TinyURL does this, but I'm not sure how, or if I'm comparing A's to
>>>>O's or whatever.
>>>
>>>
>>>Here's a little script I throw at the bottom of all my pages at
>>>DepressedPress.com.  It provides links to copy the page URL, Title or link
>>>to the clipboard (I use it when doing updates and such).
>>>
>>>The code will only work on IE (thus the check for "document.all" before
>>>presenting it).  Shorthand for what you need is:
>>>
>>>window.clipboardData.setData("Text", "Whudeva");
>>>
>>>I believe that this can also be specifically prevented by a security setting
>>>at well.
>>>
>>><script language="javascript1.3" type="text/javascript">
>>>      function CopyToClip_URL() {
>>>              window.clipboardData.setData("Text",
>>>"http://www.depressedpress.com/index.cfm";);
>>>      };
>>>      function CopyToClip_Title() {
>>>              window.clipboardData.setData("Text", "Welcome to the New
>>>Depressed Press");
>>>      };
>>>      function CopyToClip_Link() {
>>>              window.clipboardData.setData("Text", "<a
>>>href=\'http://www.depressedpress.com/index.cfm\'>Welcome to the New
>>>Depressed Press</a>");
>>>      };
>>>      if ( document.all ) {
>>>              document.write("                <div
>>>class=\"Footer_Disclaimer\">Copy the page <a href=\"JavaScript: var i =
>>>CopyToClip_URL();\">URL</a> or <a href=\"JavaScript: var i =
>>>CopyToClip_Title();\">Title</a> or <a href=\"JavaScript: var i =
>>>CopyToClip_Link();\">Link</a> to the clipboard</div>");
>>>      };
>>></script>
>>>
>>>
>>>Hope it helps.
>>>
>>>Jim Davis
>>>
>>>
>>>
>>>
>>
>>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221321
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to