Permalink
Browse files

update README

  • Loading branch information...
1 parent ed2c138 commit 9811ea1230693635967c994465a7e8b49aed074a @jinzhu jinzhu committed Jul 4, 2009
Showing with 30 additions and 0 deletions.
  1. +30 −0 README.md
View
@@ -36,6 +36,36 @@ page:
EOF
end
+
+Internationalization?
+---------------------------
+ def clippy(htmlElementId, copied='已复制',copyto='复制到剪贴板',bgcolor='#FFFFFF')
+ html = <<-EOF
+ <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
+ width="110"
+ height="14"
+ id="clippy" >
+ <param name="movie" value="/flash/clippy.swf"/>
+ <param name="allowScriptAccess" value="always" />
+ <param name="quality" value="high" />
+ <param name="scale" value="noscale" />
+ <param NAME="FlashVars" value="id=#{idhtmlElementId}&amp;copied=#{copied}&amp;copyto=#{copyto}">
+ <param name="bgcolor" value="#{bgcolor}">
+ <embed src="/flash/clippy.swf"
+ width="110"
+ height="14"
+ name="clippy"
+ quality="high"
+ allowScriptAccess="always"
+ type="application/x-shockwave-flash"
+ pluginspage="http://www.macromedia.com/go/getflashplayer"
+ FlashVars="id=#{idhtmlElementId}&amp;copied=#{copied}&amp;copyto=#{copyto}"
+ bgcolor="#{bgcolor}"
+ />
+ </object>
+ EOF
+ end
+
Installation (Pre-Built SWF)
---------------------------

0 comments on commit 9811ea1

Please sign in to comment.