Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Detect HKEY_LOCAL_MACHINE configs in IE4+?
From: John Croteau
Date: Thu, 10 Jun 1999 04:13:16 +0100

Hi Warren,

You can use VBScript version 2 and later to determine if the Flash
ActiveX control is instaled in in IE 3+ and later on Win 95/98/NT.
Most IE 3 browsers comes with VBScript 1.0 and are not able to detect
whether the ActiveX control is installed or not. But may do have later
script engines and are detectable. Another problem with IE3 and beta
IE4s is that the lack of authenticode update will restrict normal
updating of ActiveX control.
----------------------------------------------------------------------
The following will detect the ActiveX control in detectable IE browsers
without opening an alert box in IE Macs to inform the user he can't see
all the content on the page (doesn't have VBScript).
It will send users with Flash 3 to a Flash 3 page other users to a
noFlash page.
---------------------------------------------

if ((navigator.userAgent) &&
(navigator.appName == "Microsoft Internet Explorer") &&
((navigator.userAgent.indexOf('Windows 9') != -1) ||
(navigator.userAgent.indexOf('Windows NT') != -1) ||
(navigator.userAgent.indexOf('Win32') != -1)))
{
temp = '<SCRIPT LANGUAGE="VBScript"\> \n'
temp += '<!--\n'
temp += 'If ScriptEngineMajorVersion >= 2 then\n'
temp += 'on error resume next\n'
temp += 'If Not IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))
then \n'
temp += 'If err then\n'
temp += 'top.location = "NoFlash.htm"\n'
temp += 'Else\n'
temp += 'top.location = "Flash3.htm"\n'
temp += 'End If \n'
temp += 'End If \n'
temp += 'End If \n'
temp += '-->\n'
temp += '</SCRIPT\> \n'
document.write(temp);
}

----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Detect HKEY_LOCAL_MACHINE con, Warren 'The Howdy Man' Oc

Replies
  FLASH: Detect HKEY_LOCAL_MACHINE configs, Warren 'The Howdy Man' Oc

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]