Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-25-2003, 06:43 PM   PM User | #1
pilsjart
New Coder

 
Join Date: Jun 2002
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
pilsjart is an unknown quantity at this point
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
pilsjart is offline   Reply With Quote
Old 02-25-2003, 11:20 PM   PM User | #2
nevub
New to the CF scene

 
Join Date: Jun 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
nevub is an unknown quantity at this point
One of the best Flash detection scripts out there is from Colin Moock.

You can find it here.

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

Regards,
Seth.
nevub is offline   Reply With Quote
Old 02-26-2003, 12:29 AM   PM User | #3
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
Another good detection script... works for me
http://www.xs4all.nl/~ppk/js/flash.html
mordred is offline   Reply With Quote
Old 02-26-2003, 08:04 PM   PM User | #4
Tails
Regular Coder

 
Join Date: Nov 2002
Posts: 672
Thanks: 1
Thanked 1 Time in 1 Post
Tails is an unknown quantity at this point
Can VBScript be used to search the registry and return true or false values if a specific entry exists (for plugins)?
Tails is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:46 PM.


Advertisement
Log in to turn off these ads.