本帖最后由 t67115949 于 2012-9-21 12:11 编辑
这是UTF8版的代码,- <!--千脑上传插件开始-->
-
- <div id="batUpload2" style="display:;">
- <div style="height: 21px;">
- <span style="font-size:14px; font-weight: bold;">千脑批量上传</span> (限制最大上传文件大小为100MB,只允许上传jpg,gif,png,zip,rar,txt格式)
-
- </div>
- <div id="noflash_div" class="content" style="background-color: #FFFF66; border: solid 4px #FF9966; margin: 10px 25px; padding: 10px 15px;
- display: none;">
- 批量文件上传需要Flash9及以上版本,请安装或者升级您的Flash插件。
- 请访问: <a
- target="_blank">Adobe网站</a> 获取最新的Flash插件。
- </div>
- <div style="margin-left: 0px;">
- <span id="spanButtonPlaceHolder" style="width: 90px"> </span>
- <a id="btnCancel" href="javascript:qnupload.cancelQueue();">停止上传</a>
- <input id=hideFile type=checkbox >隐藏附件</input> <input id=pointLimit type=text value=0 size=1>售价</input>
- <p id="divStatus" style="color: red;margin:0px;display:none">(严禁上传非法文件) </p>
- <div class="fieldset flash" id="fsUploadProgress" style="width: 450px; margin-left: 0px;">
- </div>
- </div>
- <link rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="http://www.qiannao.com/upload/js/qnupload.js" charset="gbk"></script>
- <script type="text/javascript">
-
- var editor_id = "phpwind";
- var qn_userid = "qiannao";//把这里的qiannao改为您的千脑用户名
- var bbs_userid = "$windid";
- var mainlink = "http://www.qiannao.com/";
- var jsessionid = "4564898788";
- var sitename = 'forumName';
- var qn_action = 'saveByGuest';
- uploadSettings.button_text = '<span class="theFont">选择文件</span>';
- uploadSettings.button_image_url = 'http://www.qiannao.com/upload/images/uploadbutton.png';
- uploadSettings.file_size_limit = '100 MB';//限制最大上传文件大小为100MB
- uploadSettings.file_types = '*.jpg;*.gif;*.png;*.zip;*.rar;*.txt;';//限制只允许上传jpg,gif,png,zip,rar,txt格式
- init_qnupload();
- function props(str){
- return str;
- }
- </script>
- <!--千脑上传插件结束-->
复制代码 我刚才测试一下,添加进去会变成乱码,用记事本打开post_editor.htm,点击文件--另存为,使用utf-8保存,OK了
|