...

View Full Version : how to detect flash 6



pilsjart
02-25-2003, 06:43 PM
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

nevub
02-25-2003, 11:20 PM
One of the best Flash detection scripts out there is from Colin Moock.

You can find it here.

http://www.moock.org/webdesign/flash/detection/moockfpi/

Regards,
Seth.

mordred
02-26-2003, 12:29 AM
Another good detection script... works for me
http://www.xs4all.nl/~ppk/js/flash.html

Tails
02-26-2003, 08:04 PM
Can VBScript be used to search the registry and return true or false values if a specific entry exists (for plugins)?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum