先看下面的代码:
rmUrl="1.rm";
document.write("<OBJECT id=\"Player\" classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"400\" height=\"63\">");
document.write("<param name=\"_ExtentX\" value=\"16140\">");
document.write("<param name=\"_ExtentY\" value=\"1588\">");
document.write("<param name=\"AUTOSTART\" value=\"-1\">");
document.write("<param name=\"SHUFFLE\" value=\"0\">");
document.write("<param name=\"PREFETCH\" value=\"0\">");
document.write("<param name=\"NOLABELS\" value=\"0\">");
document.write("<param name=\"SRC\" value=\""+rmUrl+"\">");
document.write("<param name=\"CONTROLS\" value=\"StatusBar,ControlPanel\">");
document.write("<param name=\"CONSOLE\" value=\"Clip1\">");
document.write("<param name=\"LOOP\" value=\"-1\">");
document.write("<param name=\"NUMLOOP\" value=\"0\">");
document.write("<param name=\"CENTER\" value=\"0\">");
document.write("<param name=\"MAINTAINASPECT\" value=\"0\">");
document.write("<param name=\"BACKGROUNDCOLOR\" value=\"#000000\">");
document.write("<embed src=\""+rmUrl+"\" type=\"audio/x-pn-realaudio-plugin\" console=\"Clip1\" controls=\"ControlPanel,StatusBar\" width=\"400\" height=\"63\" autostart=\"true\">");
document.write("</OBJECT>");我用IE打开网页,就不提示需要安装插件。直接无法播放。(因为我没安装realone)用FF浏览,就提示安装插件,我点提示给的按钮,却无法搜索到需要安装的插件。我自己直接安装realone播放器,再浏览这个页面,就能正常播放音乐了。
我的问题是:
1,为什么FF不能正确找到需要的插件呢?
2,能不能自己用JS判断用户是否需要安装插件,如果没有安装,就提示用户自己去下载一个播放器。安装。