日期:2014-05-20  浏览次数:20655 次

求一段javascript增加弹窗提示
<script language="JavaScript">
var clip = null;

function init() {
// setup single ZeroClipboard object for all our elements
clip = new ZeroClipboard.Client();
clip.setHandCursor( true );

// assign a common mouseover function for all elements using jQuery
$('div.multiple').mouseover( function() {
// set the clip text to our innerHTML
clip.setText( this.innerHTML );

// reposition the movie over our element
// or create it if this is the first time
if (clip.div) {
clip.receiveEvent('mouseout', null);
clip.reposition(this);
}
else clip.glue(this);

// gotta force these events due to the Flash movie
// moving all around. This insures the CSS effects
// are properly updated.
clip.receiveEvent('mouseover', null);
} );
}
</script>



网上刨来的javascript,需要增加一个“复制成功”的提示框,就是内容复制到剪贴板成功后出来的那个提示框,如何增加,谢谢!

------解决方案--------------------
最简单就是:

alert("复制成功");