Skyzyx
06-05-2003, 09:18 AM
I got this Flash detection script from PPK's site (http://www.xs4all.net/~ppk/js/index.html?/~ppk/js/flash.html).
I've been trying to implement it in a JavaScript Library (*.js) using document.write to write the VBScript, but I've been having problems getting it to work.
Is there any way to rewrite the following Microsoft VBScript code as Miscrosoft JScript code?
<SCRIPT LANGUAGE="VBScript">
on error resume next
If MSDetect = "true" Then
For i = 2 to 6
If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then
Else
flashinstalled = 2
flashversion = i
End If
Next
End If
If flashinstalled = 0 Then
flashinstalled = 1
End If
</SCRIPT>
I'd appreciate any suggestions.
I've been trying to implement it in a JavaScript Library (*.js) using document.write to write the VBScript, but I've been having problems getting it to work.
Is there any way to rewrite the following Microsoft VBScript code as Miscrosoft JScript code?
<SCRIPT LANGUAGE="VBScript">
on error resume next
If MSDetect = "true" Then
For i = 2 to 6
If Not(IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & i))) Then
Else
flashinstalled = 2
flashversion = i
End If
Next
End If
If flashinstalled = 0 Then
flashinstalled = 1
End If
</SCRIPT>
I'd appreciate any suggestions.