2012-04-29 42 views
1

正如標題所示,我似乎無法獲取Uploadify以在上載過程中停止顯示進度框。這裏是我有:如何從顯示進度框中停止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' : '<[email protected](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); 
       } 
      }); 

回答

3

它嘗試簡單的:

刪除鏈接uploadify css,然後在你的CSS補充一點:

.uploadifyQueue 
{ 
display:none; 
} 
+5

工作了不起!謝謝!我將爲使用此答案的人添加的唯一一件事,該類實際上是「uploadify-queue」,並且不需要取消鏈接uploadify.css文件以使其工作。 – Colin

+0

不客氣。很高興它幫助你。 – coder

0

這似乎是名稱已更改,這一個爲我工作:

#upload_pc-queue{ 
    display:none; 
}