|
本帖最后由 zhgc 于 2022-9-11 08:38 编辑
解决社区动力discuz不能复制连接的问题
原功能由flash实现,现在flash功能已不再可用
- function _setCopy(text, msg){
- if(BROWSER.ie) {
- var r = clipboardData.setData('Text', text);
- if(r) {
- if(msg) {
- showPrompt(null, null, '<span>' + msg + '</span>', 1500);
- }
- } else {
- showDialog('<div class="c"><div style="width: 200px; text-align: center;">复制失败,请选择“允许访问”</div></div>', 'alert');
- }
- } else {
- var msg = '<div class="c"><div style="width: 200px; text-align: center; text-decoration:underline;">点此复制到剪贴板</div>' +
- AC_FL_RunContent('id', 'clipboardswf', 'name', 'clipboardswf', 'devicefont', 'false', 'width', '200', 'height', '40', 'src', STATICURL + 'image/common/clipboard.swf', 'menu', 'false', 'allowScriptAccess', 'sameDomain', 'swLiveConnect', 'true', 'wmode', 'transparent', 'style' , 'margin-top:-20px') + '</div>';
- showDialog(msg, 'info');
- text = text.replace(/[\xA0]/g, ' ');
- CLIPBOARDSWFDATA = text;
- }
- }
复制代码
|
|