1

正如标题所说,我似乎无法让 Uploadify 在上传过程中停止显示进度框。这是我所拥有的:

$('#imageupload').uploadify({
                'swf'      : 'scripts/uploadify/uploadify.swf',
                'uploader' : 'scripts/uploadify/uploadify.php',
                // Put your options here
                'buttonText' : 'Select Image',
                'uploadLimit' : 999,
                'overrideEvents' : ['onUploadProgress'],
                'multi' : false,
                'formData'      : {'yourid' : '<?=@(int)$_SESSION['user']?>'},
                'fileSizeLimit' : '2MB',
                'fileTypeExts' : '*.gif; *.jpg; *.png; *.JPG; *jpeg',
                'fileTypeDesc' : 'Image Files',
                'onUploadStart' : function(file) {
                    $("#imageupload").uploadify("settings", "formData", {'yourid' : $(".userid").attr("id")});
                    $(".imageuploadbox #imagepercent").css("display", "inline");
                },
                'onUploadSuccess' : function(file) {
                    var currenttime = new Date();
                    $("img#yourprofilepic").attr("src", "images/artist_pictures/thumbs/artist_8.jpg?"+currenttime);
                },
                'onUploadProgress' : function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) {
                    var percentcomp = (100*(totalBytesTotal/totalBytesUploaded)).toFixed(0);
                    $('.imageuploadbox #imagepercent #percentcomplete').html(percentcomp);
                } 
            });
4

2 回答 2

3

很简单试试这个:

删除要上传的链接css,然后将其添加到您的 css 中:

.uploadifyQueue
{
display:none;
}
于 2012-04-29T21:22:33.623 回答
0

好像名字变了,这个对我有用:

#upload_pc-queue{
    display:none;
}
于 2013-10-10T16:05:43.610 回答