Permalink
Browse files

Added Internet Explorer Compatibility, SwfObject is now added for han…

…dling insertion of Flash Objects.
  • Loading branch information...
1 parent 19dcdd3 commit bc24804bd1d55a8279dbcc03c4c4e813705aed8b @dudeami committed Jul 23, 2010
Showing with 63 additions and 0 deletions.
  1. +44 −0 scripts/example.js
  2. +4 −0 scripts/swfobject.js
  3. +15 −0 scripts/zeroclipboard.jquery.min.js
View
@@ -0,0 +1,44 @@
+ $(document).ready(function () {
+ $('#tester').zeroclipboard({
+ text: 'Hahaha! You clicked me :)',
+ hand: true
+ });
+ $('#resizetest').zeroclipboard({
+ text: 'Hahaha! You clicked me :)',
+ hand: true
+ });
+ $('#testerupdate').click(function () {
+ $('#tester').css('width', '100px');
+ $('#tester').zeroclipboard({
+ 'text': 'Updated from #testerupdate ;)',
+ 'hand': true
+ });
+ });
+ $('#destroyflash').zeroclipboard({
+ 'text': 'Copied from #destroyflash, now destroy the flash!',
+ 'hand': true
+ });
+ $('#destroyflasha').click(function () {
+ $('#destroyflash').zeroclipboard({'destroy': true});
+ });
+ $('#destroywhole').zeroclipboard({
+ 'text': 'Copied from #destroywhole, now destroy me!',
+ 'hand': true
+ });
+ $('#destroywholea').click(function () {
+ $('#destroywhole').remove();
+ });
+ $('#testercss').zeroclipboard({
+ 'text': 'Copied from #testercss',
+ 'hand': true
+ }).mouseover(function () {
+ $(this).css({'color': '#f00'}, 1000);
+ }).mouseout(function () {
+ $(this).css({'color': '#000'}, 1000);
+ }).mousedown(function () {
+ $(this).css('font-weight', 'bold');
+ }).mouseup(function () {
+ $(this).css('font-weight', 'normal');
+ });
+
+ });
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit bc24804

Please sign in to comment.