swf对象用于上传图像文件的问题

问题描述

| 我刚从一个网站上获取此脚本,用于将图像上载到我的网站www.drf-stact.co.cc 如果我无法查看小于8的上载按钮,并且它与FF和crome配合良好,请...指导我使其在6,7,8中起作用。 非常感谢。
<html>
    <head>
    <script type=\"text/javascript\" src=\"scripts/jquery-1.3.2.min.js\"></script>
      <!--for the uploadify-->
      <link href=\"css/default.css\" rel=\"stylesheet\" type=\"text/css\" />
      <link href=\"css/uploadify.css\" rel=\"stylesheet\" type=\"text/css\" />
      <script type=\"text/javascript\" src=\"scripts/swfobject.js\"></script>
      <script type=\"text/javascript\" src=\"scripts/jquery.uploadify.v2.1.0.min.js\"></script>

      <script type=\"text/javascript\">
     $(function() {
        //uploadify:
        $(\"#uploadify\").uploadify({
            \'uploader\'       : \'scripts/uploadify.swf\',\'script\'         : \'scripts/uploadify.php?setit=customename\',\'cancelImg\'      : \'cancel.png\',\'folder\'         : \'images\',\'queueID\'        : \'fileQueue\',\'auto\'           : true,\'multi\'          : true,\'queueSizeLimit\' : 5,\'fileDesc\'       : \'jpg,gif\',\'fileExt\'        : \'*.jpg;*.gif\',\'sizeLimit\'      : \'204800\',//max size bytes - 200kb
            \'checkScript\'    : \'scripts/check.php\',//if we take this out,it will never replace files,otherwise asks if we want to replace
            \'onAllComplete\'  : function() {
                                    //$(\'#switch-effect\').unbind(\'change\');
                                    //$(\'#toggle-slideshow\').unbind(\'click\');
                                }
        });

      }); 
      </script>
      <title>AD-Gallery + Uploadify + classe.upload</title>
    </head>
    <body>

      <!--uploadify-->

        <div style=\"float:left;\">
            <div id=\"fileQueue\"></div>
            <div>you can select more than one file at once</div>
            <input type=\"file\" name=\"uploadify\" id=\"uploadify\" />
            <p><a href=\"javascript:jQuery(\'#uploadify\').uploadifyClearQueue()\">Cancel All Uploads</a></p>
        </div>
    <a href=\"index.html\">back</a>  

    </body>
    </html>
请点击此链接下载用于我的图片上传的所有脚本。点击这里下载仅160kb的rar文件     

解决方法

请启用Flash Player插件,或将其更新为新的。 您也可以检查- 如果(swfobject.hasFlashPlayerVersion(\“ 9.0.18 \”)){ $(\'。messagediv \')。html(\'要上传的理想图像尺寸400 x200。\'); } 其他{ $(\'。messagediv \')。html(\'已禁用Flash Player或未安装Flash Player,请在浏览器中安装Flash Player插件。 }     

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...