我有一个绑定到选择器的插件,例如。一个按钮。当我点击按钮然后执行该功能(显示一个窗口,我可以选择要上传的图片)。
代码如下所示:
$('#image_upload').uploadify({
'uploader': '../../frontend/jquery/plugins/uploadify/swf/uploadify.swf',
'script': 'controllers/ajaxcalls/image.php',
});
所以它绑定到id =“image_upload”的按钮。但这会给按钮一个不同的外观,我不想要那个。我想要一个常规的按钮外观。
所以我认为我可以使用常规,然后当我点击那个时,它会执行uploadify插件。
可能吗?
答案 0 :(得分:3)
查看documentation。据我所知,设置选项
wmode: 'transparent'
隐藏flash-thingy 和隐藏原始按钮。
您还可以查看buttonText buttonImg hideButton rollover width height cancelImg
选项,以便根据您的要求设置按钮样式。
答案 1 :(得分:1)
Uploadify使用Flash按钮来利用Flash的文件上传功能。据我所知,你无法将它绑定到普通按钮。
您可以设置按钮的样式,this thread has some tips。