|
how to detect flash 6
I would like to detect if the user has a Flash 6. Right now I can detect Flash, but I cannot detect the version.
Does any of you have any ideas...
I posted the code I'm using at this moment. (sort of edited code supplied by DremWeaver)
function doYouHaveFlash(){
with (navigator) {
if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1){
document.write('<scr'+'ipt language="VBScript">\nOn error resume next\n'+
'haveFlash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');
}
if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
window.haveFlash = (plugins && plugins['Shockwave Flash']);
}
}
}
....
doYouHaveFlash();
if(window.haveFlash)
blablabla
else
blabalbalalbalab
I would lik..
if(window.haveFlash6){
blablablablab
else
blablablabla
thank you
|