复制和粘贴的js代码forIE/FireFox/mozilla/ns

王朝html/css/js·作者佚名  2008-05-21
窄屏简体版  字體: |||超大  

Jscript有些属性其实挺好的,可惜就是只是IE支持,比如复制和粘贴的属性

下面这段复制和粘贴的JAVASCRIPT的代码倒是可以支持IE/FireFox/mozilla/ns,,老外站点上看来的

只是在firefox下需要修改一下about:config的一个属性

<script language="javascript" type="text/javascript"><!--function copy_clip(meintext){if (window.clipboardData)

notes about security:

a cause of the tight security settings in mozilla you have to sign the javascript to make it work another way is to change your firefox/mozilla settings

to do this add this line to your prefs.js file in your firefox/mozilla user profile directory

user_pref("signed.applets.codebase_principal_support", true);

or change it from within the browser with calling the "about:config" page

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航