2009-02-21 14:54 | Posted by Sunshow | Filed Under WebDev
我都不知道什么时候开始就有这个问题了,我记得以前是没问题的…… 症状很简单,写一行最简单的javascript代码,例如“alert(1);”,保存成.js文件 接着在一个html文件中用script标签引入该js,在IE7下打开始终提示无效字符,简直让我抓狂了 (最诡异的事情是有时候改个文件名又能执行,有的文件名又不行,见鬼) 于是分析问题,用IETester的IE6标签打开,一切正常 放到webserver下通过http访问,也正常 这样基本可以确定是本地安全策略的问题 把Internet选项的安全设置本地设为低,再打开之前的文件,竟然……还不行 最后搜到了微软的官方说明(据说是机器翻译,可读性还挺不错): Internet Explorer 7 如果使用 Internet Explorer 7 时遇到此问题,请按照下列步骤: 1. 单击 开始 ,单击 运行 ,在 打开 的框中键入 Regedit ,然后单击 确定 。 2. 找到下面的注册表项,并单击下面的注册表项: HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BLOCK_LMZ_SCRIPT(注:这个项默认似乎没有,得自己建立) 3. 在 编辑 菜单上指向 新建 ,然后单击 DWORD 值 。 4. 在 DWORD 值 框中,键入 iexplore.exe ,,然后再按 Enter。 5. 双击在步骤 4 中创建 iexplore.exe [...]
2007-03-15 10:06 | Posted by Sunshow | Filed Under WordPress
RunCode A plugin for WordPress, which can be used to show your code and run html,css,javascript code in a textarea. Author Sunshow,contact address:sunshow@gmail.com. Plugin URL http://wordpress.org/extend/plugins/runcode/ http://blog.sunshow.net/2007/03/wordpress-runcode-plugin/ Features Adds a textarea to run your code(html/css/javascript). Change Log v1.0.1 Fix the wrong archive. v1.0 Add multi-language support. Add new feature: copy to clipboard. Download Download! Usage [...]
Recent Comments