View Full Version : ¿Javascript Webcam Browser Version?

08-18-2005, 02:41 AM
Hi! I'm really new with this, but I have the following javascript displaying a webcam on a website, and it only works on Internet Explorer for Windows. I need it to work on other browsers, especially Mozilla (firefox). Any help is very much appreciated.

<script language="JavaScript">
if ((navigator.appName == "Microsoft Internet Explorer")&&(navigator.platform != "MacPPC"))
document.write("<OBJECT ID=\"VaCtrl\" WIDTH=362 HEIGHT=306");
document.write(" CLASSID=CLSID:A93B47FD-9BF6-4DA8-97FC-9270B9D64A6C");
document.write(" CODEBASE=\",7,0,5\">");
document.write("<PARAM NAME=\"Url\" VALUE=\"\">");
document.write("<PARAM NAME=\"VSize\" VALUE=\"SIF\">");
document.write("<PARAM NAME=\"RemoteIP\" VALUE=\"\">");
document.write("<PARAM NAME=\"RemotePort\" VALUE=\"5001\">");

08-18-2005, 12:26 PM
so you obviously didn't write it then, did you? just get rid of the object detection conditional.