090119 升级到swfupload 2.2.0

之前一直正常使用的swfupload突然用不了,这是由于flash play10的缘故。所以需要升级到对应的swfupload 2.2.0

升级必须要做的:

更换swfupload.swf、swfupload.js、default.css

将原来的onClick="swfu.selectFiles();的按钮修改为:<span id="spanButtonPlaceholder" ></span>

在setting里加多:
   button_image_url : "images/XPButtonNoText_160x22.png", // Relative to the SWF file
    button_placeholder_id : "spanButtonPlaceholder",
    button_width: 160,
    button_height: 22,
    button_text : '<span class="button">请选择图片<span class="buttonSmall">(10MB Max)</span></span>',
    button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
    button_text_top_padding: 1,
    button_text_left_padding: 5,

就这么多了。

你可能感兴趣的:(css,Flash)