我刚刚从其中一个站点获取此脚本,用于将图像上传到我的网站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>
请点击此链接下载用于上传图片的所有脚本。 click here to download rar file of 160kb only
答案 0 :(得分:0)
您也可以查看它 -
if(swfobject.hasFlashPlayerVersion(“9.0.18”)){ $('。messagediv')。html('Ideal Image Dimension 400 x 200 to upload。'); } 其他{ $('。messagediv')。html('Flash player已禁用或未安装,请在浏览器中安装flash player附加插件。'); }