Zeroclipboard page Special effects copy to the Clipboard Flash code
This step is important to set the Flash file reference path.
Zeroclipboard.setmoviepath (' http://www.111cn.net/scripts/zeroclipboard/zeroclipboard.swf ');
Creating Zeroclipboard Objects
Clip = new Zeroclipboard.client ();
Clip.sethandcursor (TRUE);
Load event to save the content that needs to be replicated in the Mouseo Tutorial ver event in Flahs file
Clip.addeventlistener (' MouseOver ', function (client) {
Clip.settext ($ (' #indinfo '). Val ());
});
Pop-up dialog box after successful replication
Clip.addeventlistener (' Complete ', function (client, text) {
Alert ("Copied text to Clipboard:nn" + text);
});
Specifies the implementation of the replication feature object
Clip.glue (' copy ');
Here are the HTML objects that are used
<%= Html.hidden ("Indinfo", viewdata["Indinfoformat"].safestring ())%>
Input type= "button" value= "Copy to Clipboard" id= "copy" name= "Copy"/>