Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    New to the CF scene
    Join Date
    Jun 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Another good detection script... works for me
    http://www.xs4all.nl/~ppk/js/flash.html

  • #4
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    Can VBScript be used to search the registry and return true or false values if a specific entry exists (for plugins)?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •