Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Windows media player

Status
Not open for further replies.

paragvshah

Programmer
Jan 11, 2001
109
0
0
IN
Hi Friends,

I want to detect for windows media player as soon as my home page is opened by the visitor to the site.
How can i do the detection of Windows media player, so that if any body does not have WMP on their machine it should give a prompt & give a link to download the media player.

Please help me out.

PARAG.
 
Hi there,

This is perfectly do-able...but only in Netscape Navigator!

// Pass the name of a plug-in for this function to see
// if the plug-in is registered with this browser and
// that it is enabled for at least one MIME type of any kind.
function pluginIsReady(plug_in) {
for (var i = 0; i < navigator.plugins.length; i++) {
if (navigator.plugins.name.toLowerCase() == plug_in.toLowerCase()) {
for (var j = 0; j < navigator.plugins.length; j++) {
if (navigator.plugins[j].enabledPlugin) {
return true
}
}
return false
}
}
return false
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top