Determine whether Flash is installed on UpLoader and uploaderflash
Var flashVersion = (function () {var version; try {version = navigator. plugins ['shockwave flash']; version = version. description;} 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 | 'invalid transition 'in s | 'mstransition' in s | 'otransition 'in s; s = null; return r;}) (), // WebUploader instance uploader; if (! WebUploader. Uploader. support ('flash') & WebUploader. browser. ie) {// The flash version is too low. If (flashVersion) {} else {// export wrap.html ('<a href =" http://www.adobe.com/go/getflashplayer "Target =" _ blank "border =" 0 "> </A> '); art. dialog. confirm (' You have not installed Flash yet, please install? ', Function () {window. open (' http://www.adobe.com/go/getflashplayer ',' _ Blank ');}, function () {// art. dialog. tips ('cancel the Action') ;}); // showTips ('<a href =" http://www.adobe.com/go/getflashplayer "Target =" _ blank "border =" 0 "> you have not installed Flash! Please install! </A> '); return;} else if (! WebUploader. Uploader. support () {showError ('web Uploader does not support your browser! '); Return;
}