var
FlashVersion = (function() {
var version;
try {
version = navigator.plugins['Shockwave Flash'];
version = version.descr
iption;
} catch (ex) {
try {
version = new ActiveXObject('ShockwaveFlash.ShockwaveFlash')
.GetVariable('$version');
} catch (ex2) {
version = '0.0';
}
}
version = version.match(//d+/g);
return parseFloat(version[0] + '.' + version[1], 10);
})(),
supportTransition = (function() {
var s = document.createElement_x('p').style,
r = 'transition' in s ||
'WebkitTransition' in s ||
'MozTransition' in s ||
'msTransition' in s ||
'OTransition' in s;
s = null;
return r;
})(),
// WebUploader实例
uploader;
if (!WebUploader.Uploader.support('flash') && WebUploader.browser.ie) {
// flash 安装了但是版本过低。
if (flashVersion) {
} else {
// $wrap.html('<a href="http://www.adobe.com/go/getflashplayer" target="_blank" border="0"><img alt="get flash player" src="http://www.adobe.com/macromedia/style_guide/images/160x41_Get_Flash_Player.jpg" /></a>');
art.dialog.confirm('你还没安装Flash,请安装?', function () {
window.open('http://www.adobe.com/go/getflashplayer', '_blank');
}, function () {
//art.dialog.tips('执行取消操作');
});
//showTips('<a href="http://www.adobe.com/go/getflashplayer" target="_blank" border="0">你还没安装Flash!请安装!</a>');
return;
}
} else if (!WebUploader.Uploader.support()) {
showError('Web Uploader 不支持您的浏览器!');
return;
}