4 ms·
A slightly better implementation would have been to have a JavaScript click event on every colour and then use a JavaScript to Flash function to do the copy to
by edd 16y ago
A slightly better implementation would have been to have a JavaScript click event on every colour and then use a JavaScript to Flash function to do the copy to clipboard. Then only one Flash file would have had to be loaded.
- slig 16y agoAFAIK, it wouldn't work. Flash can only copy to the clipboard after an event like click, doubleclick, etc, within the swf.
- weaksauce 16y agoHe is saying that when you click on the color it sends a message to the flash object as to which color they are interested in and then the popup will be eligible to click on which will then copy to the clipboard.
- schapman623 16y agoBecause Flash objects are positioned above every other element on the page, I'd have to guess which color is below the large, single Flash object. I tried doing this with variable levels of success, but concluded that having a Flash object for every color didn't have any huge downside. Performance seems to be acceptable, unless you're using IE. Let me know if you have any performance issues.
- godDLL 16y agoThe page takes a couple of seconds to refresh on a 2007 Mac Mini. Take a look here, this piece of code provides `copy("text");` in JavaScript, and uses only one SWF (I think). sites.google.com/site/yangshuai10/jquerycopyplugin
- invisible 16y agohttp://sites.google.com/site/yangshuai10/jquerycopyplugin http://sites.google.com/site/yangshuai10/jquerycopyplugin (just linking)