From: "Dennis Lembree" <[EMAIL PROTECTED]>
Subject: RE: Detecting RealAudio plugin ?
I've had problems with this also. Try the code below, mon. Someone sent it
to me, and I believe it is in the Forum archives.
-Dennis Lembree
Online Producer, CareerShop.com
(407)363-9944 x198
Note: Before using this script, remove the XMP tags at the top and bottom of
the sample script. The XMP tags are present in this sample to prevent the
Knowledge Base web server from interpreting the sample code.
<XMP>
<SCRIPT LANGUAGE=JavaScript>
<!--
var RealMode=0;
var RealPlayer5=0;
var RealPlayer4=0;
var RealPlayerG2=0;
if (navigator.userAgent.indexOf("MSIE")<0 )
{
numPlugins = navigator.plugins.length;
for (i = 0; i < numPlugins; i++)
{
plugin = navigator.plugins[i];
if (plugin.name.substring(0,10)=="RealPlayer")
{
RealMode=1;
}
}
}
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('RealPlayerG2 = (NOT
IsNull(CreateObject("rmocx.RealPlayer G2 Control")))\n');
document.write('RealPlayer5 = (NOT
IsNull(CreateObject("RealPlayer.RealPlayer(tm) ActiveX Control
(32-bit)")))\n');
document.write('RealPlayer4 = (NOT
IsNull(CreateObject("RealVideo.RealVideo(tm) ActiveX Control
(32-bit)")))\n');
document.write('</SCRIPT\> \n');
if (RealMode || RealPlayerG2 || RealPlayer5 || RealPlayer4)
{
alert("RealPlayer plug-in is installed.");
}
else
{
alert("RealPlayer plug-in is not installed.");
}
//-->
</SCRIPT>
</XMP>
Note: This script does not work in Internet Explorer 3.0x or from within
Active Server Pages.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of RealForum
Sent: Friday, August 27, 1999 5:34 PM
Subject: Detecting RealAudio plugin ?
Date: Fri, 27 Aug 1999 23:20:20 +0200
To: [EMAIL PROTECTED]
From: Eric MICHELARD <[EMAIL PROTECTED]>
Subject: Detecting RealAudio plugin ?
Hi !
I try to check if the RealAudio plugin is correctly instaled via a
Javascript code but it's failed, especialy with IE 4.x. Does anyone could
show me a script sample to do that ?
Thanks for any advice !
Eric
----------------------------------------------------------------------------
-----------------------------
Eric / [EMAIL PROTECTED]