如何解决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插件。
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。