关于swfupload 不显示问题 求解 [ 新手入门 ]
[attach]1007[/attach]
<?
$this->widget('application.extensions.swfupload.CSwfUpload', array(
'jsHandlerUrl'=>'/js/handler.js', //Relative path
'postParams'=>array(),
'config'=>array(
'use_query_string'=>true,
'upload_url'=>'/path/to/controller/action', //Use $this->createUrl method or define yourself
'file_size_limit'=>'2 MB',
'file_types'=>'*.jpg;*.png;*.gif',
'file_types_description'=>'Image Files',
'file_upload_limit'=>0,
'file_queue_error_handler'=>'js:fileQueueError',
'file_dialog_complete_handler'=>'js:fileDialogComplete',
'upload_progress_handler'=>'js:uploadProgress',
'upload_error_handler'=>'js:uploadError',
'upload_success_handler'=>'js:uploadSuccess',
'upload_complete_handler'=>'js:uploadComplete',
'custom_settings'=>array('upload_target'=>'divFileProgressContainer'),
'button_placeholder_id'=>'swfupload',
'button_width'=>170,
'button_height'=>20,
'button_text'=>'<span class="button">'.Yii::t('messageFile', 'ButtonLabel').' (Max 2 MB)</span>',
'button_text_style'=>'.button { font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-size: 11pt; text-align: center; }',
'button_text_top_padding'=>0,
'button_text_left_padding'=>0,
'button_window_mode'=>'js:SWFUpload.WINDOW_MODE.TRANSPARENT',
'button_cursor'=>'js:SWFUpload.CURSOR.HAND',
),
)
);
?>
看过 舰长发的swfupload 帖子 实在是不是哪里错了 麻烦帮我看看 为什么不显示 一片空白 是路径的问题吗
共 2 条回复
a3522665
注册时间:2012-02-13
最后登录:2021-01-14
在线时长:1小时18分
最后登录:2021-01-14
在线时长:1小时18分
- 粉丝1
- 金钱350
- 威望0
- 积分360