From: [EMAIL PROTECTED]
Subject: Detecting RealPlayer 7 on your browser.
Hi, all.
I found the attached script which detects whether RealPlayer is installed in
your browser.
Does anyone know what string I can use to call "CreateObject" with to
detect the
RealPlayer7
plugin?
TIA.
Tony
******
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)
{
document.writeln("RealPlayer plug-in is installed.");
}
else
{
document.writeln("RealPlayer plug-in is NOT installed.");
}
*********
*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites. Archives of RealForum can
be found at http://realforum.real.com
If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:
unsubscribe realforum
or from another account, besides the address you subscribed with:
unsubscribe realforum <[EMAIL PROTECTED]>